]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Free statically loaded extensions again
authorPhil Sutter <phil@nwl.cc>
Tue, 5 May 2020 11:45:06 +0000 (13:45 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 12:28:29 +0000 (14:28 +0200)
commit869e38fcdecda3de35d999b75fbaacc750fe3aaa
tree92b75bb9cd845582f447d34f2bb5e5ab14860de3
parentbbf0db5057fd39c793ab88efd7daa1fa4347cec2
ebtables: Free statically loaded extensions again

All ebtables extensions are loaded upon program start as due to the lack
of '-m' parameters, loading on demand is not possible. Introduce
nft_fini_eb() to counteract nft_init_eb() and free dynamic memory in
matches and targets from there.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.h
iptables/xtables-eb-standalone.c
iptables/xtables-eb.c
iptables/xtables-restore.c