libnl/lib/route
Denys Fedorysychenko 86b6f6f629 Trivial fix for TBF memleak
Without this patch, running alloc / free cache loop  will lead to huge memory
leaks on machine with 3000 interfaces with tbf qdiscs.

Here was valgrind output:

==5580== 18,070,728 bytes in 347,514 blocks are definitely lost in loss record
32 of 32
==5580==    at 0x4025485: calloc (in /lib/valgrind/vgpreload_memcheck-x86-
linux.so)
==5580==    by 0x405F410: tbf_msg_parser (tbf.c:46)
==5580==    by 0x405302B: qdisc_msg_parser (qdisc.c:119)
==5580==    by 0x4033DC9: nl_cache_parse (cache.c:643)
==5580==    by 0x4033E7C: update_msg_parser (cache.c:460)
==5580==    by 0x4038A11: nl_recvmsgs (netlink-local.h:112)
==5580==    by 0x4034175: __cache_pickup (cache.c:483)
==5580==    by 0x40343FF: nl_cache_pickup (cache.c:516)
==5580==    by 0x403447D: nl_cache_refill (cache.c:698)
==5580==    by 0x4034AB7: nl_cache_alloc_and_fill (cache.c:198)
==5580==    by 0x4053216: rtnl_qdisc_alloc_cache (qdisc.c:388)
==5580==    by 0x80489DB: main (in /home/root/nltest)

Patch complied and tested for same test case, no more leaks anymore.
2010-10-13 13:24:25 +02:00
..
cls one more fix, u32.c 2009-12-07 16:27:59 +01:00
link Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
sch Trivial fix for TBF memleak 2010-10-13 13:24:25 +02:00
.gitignore Let git ignore generated pktloc source files 2010-07-03 15:56:07 +02:00
addr.c addr: add NL_DUMP_ENV function 2010-04-19 12:43:01 +02:00
class.c Add support for getting and deleting queueing classes. 2009-09-02 21:10:48 +02:00
class_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
class_obj.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
cls.c - Reworked the classifier interface. 2009-09-02 18:31:14 +02:00
cls_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
cls_obj.c - Reworked the classifier interface. 2009-09-02 18:31:14 +02:00
link.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
neigh.c neigh: fix id_attrs to include ifindex 2010-04-19 12:42:40 +02: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 Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
pktloc.c Packet Location Interface 2010-07-02 14:06:59 +02:00
pktloc_grammar.l Packet Location Interface 2010-07-02 14:06:59 +02:00
pktloc_syntax.y Packet Location Interface 2010-07-02 14:06:59 +02:00
qdisc.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
qdisc_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
qdisc_obj.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
route.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
route_obj.c Improved printing of route cache entries 2008-06-16 23:59:09 +02:00
route_utils.c Big routing code rework (API/ABI BREAK!) 2008-04-29 23:31:30 +02:00
rtnl.c restructure module documentation order 2008-12-10 18:12:30 +01:00
rule.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
tc.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00