[PATCH]Memory leak in classid.c
Nicolas CARRIER
nicolas.carrier.ext at parrot.com
Fri Apr 13 07:51:44 EDT 2012
Hello,
I'm using libnl in a program which I give to valgrind in order to track memory errors / leaks.
When my program exits, it complains about non-freed memory, allocated in 3 places in classid.c, at lines 280, 284 and 289.
It seems related to the module's constructor classid_init which allocates resources, with no destructor to free it.
The attached patch tries to fix this issue by registering a destructor which performs the tree liberation at exit.
--
Nicolas CARRIER - 6081 - 2ème centre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cleanly-destroy-search-tree-in-desctuctor.patch
Type: text/x-diff
Size: 1731 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20120413/988ac681/attachment.bin>
More information about the libnl
mailing list