]> err.no Git - util-linux/commit
libblkid: fix cache->probe memory leak
authorKarel Zak <kzak@redhat.com>
Mon, 17 Aug 2009 08:53:42 +0000 (10:53 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Aug 2009 08:56:05 +0000 (10:56 +0200)
commitebeafc50f3d8125bd77d601a26351b3eba3bc259
tree6e4deee47f815b588b1bd35a9fd42a18e3b39317
parent92cf3ab964266603cf36272d0eec96cd07fa083c
libblkid: fix cache->probe memory leak

Fixes:

 * stupid bug, blkid_put_cache() does not deallocate the probe struct

 * the cache->probe initialization in verify.c should be also more
   robust

Reported-By: Jean-Pierre Demailly <Jean-Pierre.Demailly@ujf-grenoble.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/cache.c
shlibs/blkid/src/verify.c