libnl/lib
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
..
fib_lookup restructure module documentation order 2008-12-10 18:12:30 +01:00
genl restructure module documentation order 2008-12-10 18:12:30 +01:00
netfilter new function nfnl_queue_msg_send_verdict_payload() 2010-03-10 16:02:01 +01:00
route Trivial fix for TBF memleak 2010-10-13 13:24:25 +02:00
.gitignore Build separate libraries for each netilnk family 2008-05-15 18:01:50 +02:00
addr.c restructure module documentation order 2008-12-10 18:12:30 +01:00
attr.c Introduce nla_strdup() to help parse strings attributes 2008-06-13 16:40:41 +02:00
cache.c cache: properly invoke change_cb for deleted objects in nl_cache_resync() 2010-04-19 12:42:27 +02:00
cache_mngr.c Fix up naming changes 2008-12-10 18:16:31 +01:00
cache_mngt.c restructure module documentation order 2008-12-10 18:12:30 +01:00
data.c restructure module documentation order 2008-12-10 18:12:30 +01:00
doc.c Documentation update 2008-12-03 19:58:41 +01:00
error.c Packet Location Interface 2010-07-02 14:06:59 +02:00
handlers.c restructure module documentation order 2008-12-10 18:12:30 +01:00
Makefile.am Packet Location Interface 2010-07-02 14:06:59 +02:00
msg.c Patch for unexpectedly aligned messages 2009-09-02 18:43:03 +02:00
nl.c Fix compile warning in nl.c 2010-07-03 15:15:12 +02:00
object.c Fix rule attribute comparison 2010-04-19 12:43:18 +02:00
socket.c release_local_port: properly compute the bitmap position 2009-05-04 14:56:24 +02:00
utils.c Fix compile warning in utils.c 2010-07-03 15:17:04 +02:00