f54ac3d55f
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. |
||
---|---|---|
.. | ||
cli | ||
fib_lookup | ||
genl | ||
netfilter | ||
route | ||
.gitignore | ||
Makefile.am | ||
addr.c | ||
attr.c | ||
cache.c | ||
cache_mngr.c | ||
cache_mngt.c | ||
data.c | ||
error.c | ||
handlers.c | ||
msg.c | ||
nl.c | ||
object.c | ||
socket.c | ||
utils.c |