Skip to content

Commit 42478da

Browse files
elmarcoMarkus Armbruster
authored and
Markus Armbruster
committed
tests: fix crumple/recursive leak
Spotted by ASAN: ================================================================= ==27907==ERROR: LeakSanitizer: detected memory leaks Direct leak of 4120 byte(s) in 1 object(s) allocated from: #0 0x7f913458ce50 in calloc (/lib64/libasan.so.5+0xeee50) #1 0x7f9133fd641d in g_malloc0 (/lib64/libglib-2.0.so.0+0x5241d) #2 0x5561c6643c95 in qdict_crumple_test_recursive /home/elmarco/src/qq/tests/check-block-qdict.c:438 #3 0x7f9133ff7c49 (/lib64/libglib-2.0.so.0+0x73c49) Signed-off-by: Marc-André Lureau <[email protected]> Message-Id: <[email protected]> [Screwed up in commit 2860b2b] Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Markus Armbruster <[email protected]>
1 parent b736e25 commit 42478da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/check-block-qdict.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ static void qdict_crumple_test_recursive(void)
491491
empty_list_0 = qobject_to(QDict, qlist_pop(empty_list));
492492
g_assert(empty_list_0);
493493
g_assert_cmpint(qdict_size(empty_list_0), ==, 0);
494+
qobject_unref(empty_list_0);
494495

495496
qobject_unref(src);
496497
qobject_unref(dst);

0 commit comments

Comments
 (0)