Maxim Levitsky d232b87ec6 libqtest: fix memory leak in the qtest_qmp_event_ref
The g_list_remove_link doesn't free the link element,
opposed to what I thought.
Switch to g_list_delete_link that does free it.

Also refactor the code a bit.
Thanks for Max Reitz for helping me with this.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201019163702.471239-4-mlevitsk@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2020-10-24 07:36:53 +02:00
..
2020-10-13 12:48:17 +02:00
2020-10-05 10:59:42 +01:00
2020-09-23 13:45:52 +01:00
2020-09-23 13:41:58 +01:00
2020-10-15 16:06:27 +02:00
2020-09-08 11:43:16 +02:00