]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Introduce xtables_fini()
authorPhil Sutter <phil@nwl.cc>
Tue, 5 May 2020 11:56:11 +0000 (13:56 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 12:28:29 +0000 (14:28 +0200)
commit7db4333dc0b6cd8e943fab78d6dab40ff9f4512e
tree351ee8f17a1b795dced28f65f04e43681eef9499
parent869e38fcdecda3de35d999b75fbaacc750fe3aaa
libxtables: Introduce xtables_fini()

Record handles of loaded shared objects in a linked list and dlclose()
them from the newly introduced function. While functionally not
necessary, this clears up valgrind's memcheck output when also
displaying reachable memory.

Since this is an extra function that doesn't change the existing API,
increment both current and age.

Signed-off-by: Phil Sutter <phil@nwl.cc>
14 files changed:
configure.ac
include/xtables.h
iptables/ip6tables-standalone.c
iptables/iptables-restore.c
iptables/iptables-save.c
iptables/iptables-standalone.c
iptables/xtables-arp-standalone.c
iptables/xtables-eb.c
iptables/xtables-monitor.c
iptables/xtables-restore.c
iptables/xtables-save.c
iptables/xtables-standalone.c
iptables/xtables-translate.c
libxtables/xtables.c