OSDN Git Service

tests: fix crumple/recursive leak
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 9 Aug 2018 11:44:14 +0000 (13:44 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 15 Aug 2018 06:12:19 +0000 (08:12 +0200)
commit42478dacc82f1da8dd5cb37e67e3799681d06eac
treed3b09365a442855a1cde0f542a9f3bee61775dea
parentb736e25a1820c63f7d69baa03e624cef80c4de90
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 <marcandre.lureau@redhat.com>
Message-Id: <20180809114417.28718-2-marcandre.lureau@redhat.com>
[Screwed up in commit 2860b2b2cb8]
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
tests/check-block-qdict.c