[PATCH]Memory leak in classid.c
nicolas.carrier.ext at parrot.com
Fri Apr 13 07:51:44 EDT 2012
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...
Size: 1731 bytes
Desc: not available
More information about the libnl