summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAna Rey <anarey@gmail.com>2013-12-02 11:45:14 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:54 +0100
commitb0194cea194b510c675ca05415da15cff57afe47 (patch)
tree14201d187e2910e7beeca228cbda47c0c0ee87e3 /include
parent6a4033b70dfdcc2df66f4ea51c901786a2b6131c (diff)
iptables: nft: fix memory leaks in nft_fini
Those errors are shown with valgrind tool: valgrind --leak-check=full xtables -A INPUT -i eth0 -p tcp --dport 80 ==12554== 40 bytes in 1 blocks are still reachable in loss record 1 of 10 ==12554== at 0x4C2935B: malloc (vg_replace_malloc.c:270) ==12554== by 0x574D755: mnl_nlmsg_batch_start (nlmsg.c:447) ==12554== by 0x416520: nft_action (nft.c:2281) ==12554== by 0x41355E: xtables_main (xtables-standalone.c:75) ==12554== by 0x5B87994: (below main) (libc-start.c:260) ==12554== 135,168 bytes in 1 blocks are still reachable in loss record 9 of 10 ==12554== at 0x4C2935B: malloc (vg_replace_malloc.c:270) ==12554== by 0x415A24: mnl_nft_batch_alloc (nft.c:102) ==12554== by 0x416520: nft_action (nft.c:2281) ==12554== by 0x41355E: xtables_main (xtables-standalone.c:75) ==12554== by 0x5B87994: (below main) (libc-start.c:260) These objects are allocated from nft_init but they were not released appropriately in the exit path. Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions