diff options
author | Phil Sutter <phil@nwl.cc> | 2022-11-25 21:47:52 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-12-02 01:44:17 +0100 |
commit | 16e1ce4ed32ac86eb834531282ae14fdb4e102ac (patch) | |
tree | f7b35486ee3e98d1a989a419456e4825cf403fac /iptables | |
parent | 8bee0db39f7553589c2cec58cc92ed2eafd2eb57 (diff) |
xshared: Free data after printing help
This is merely to make valgrind happy, but less noise means less real
issues missed.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/xshared.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/xshared.c b/iptables/xshared.c index 2a894c19..f93529b1 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -1543,6 +1543,9 @@ void do_parse(int argc, char *argv[], XTF_TRY_LOAD, &cs->matches); xtables_printhelp(cs->matches); + xtables_clear_iptables_command_state(cs); + xtables_free_opts(1); + xtables_fini(); exit(0); /* |