libnl/lib/route
Nicolas CARRIER f54ac3d55f Memory leak in classid.c
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.
2012-04-19 18:51:17 +02:00
..
cls Unified TC API 2011-03-21 15:51:52 +01:00
link rtnl_link_bond_add: allow to allocate bond name in case NULL is given 2011-11-11 16:24:53 +01:00
qdisc Support plug qdisc - queue traffic until explicit release 2012-02-14 12:02:04 +01:00
.gitignore Let git ignore generated pktloc source files 2010-07-03 15:56:07 +02:00
addr.c Fix rtnl_link object memory leak when freeing rtnl_addr objects. 2011-10-10 11:44:05 +02:00
class.c trafic class/classifer API improvements and documentation 2011-03-29 12:41:59 +02:00
classid.c Memory leak in classid.c 2012-04-19 18:51:17 +02:00
cls.c documentation updates 2011-07-14 12:48:00 +02:00
link.c link: fix regression in link message parser 2012-01-12 13:15:31 +01:00
neigh.c add new function to provide neighbour event parsing 2012-01-30 12:54:29 +01:00
neightbl.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
nexthop.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
pktloc.c fix license of lib/route/pktloc.c 2011-09-08 15:08:22 +02:00
pktloc_grammar.l Packet location updates 2010-10-27 01:21:50 +02:00
pktloc_syntax.y pktloc: support to specify a shift operator for packet locations 2010-11-04 20:01:36 +01:00
qdisc.c Qdisc API improvements and documentation 2011-03-25 18:13:19 +01:00
route.c Documentation updates 2011-03-22 00:40:26 +01:00
route_obj.c missing extended Table attribute for lib/route/ 2012-03-06 10:15:30 +01:00
route_utils.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
rtnl.c Use name "global" instead of "universe" for largest scope 2011-05-04 17:47:09 +02:00
rule.c missing extended Table attribute for lib/route/ 2012-03-06 10:15:30 +01:00
tc.c documentation updates 2011-07-14 12:48:00 +02:00