diff options
author | Phil Sutter <phil@nwl.cc> | 2020-05-05 13:45:06 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-05-11 14:28:29 +0200 |
commit | 869e38fcdecda3de35d999b75fbaacc750fe3aaa (patch) | |
tree | 92b75bb9cd845582f447d34f2bb5e5ab14860de3 /iptables/xtables-eb-standalone.c | |
parent | bbf0db5057fd39c793ab88efd7daa1fa4347cec2 (diff) |
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>
Diffstat (limited to 'iptables/xtables-eb-standalone.c')
-rw-r--r-- | iptables/xtables-eb-standalone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-eb-standalone.c b/iptables/xtables-eb-standalone.c index ff74ddbb..181cf2d0 100644 --- a/iptables/xtables-eb-standalone.c +++ b/iptables/xtables-eb-standalone.c @@ -53,7 +53,7 @@ int xtables_eb_main(int argc, char *argv[]) if (ret) ret = nft_bridge_commit(&h); - nft_fini(&h); + nft_fini_eb(&h); if (!ret) fprintf(stderr, "ebtables: %s\n", nft_strerror(errno)); |