From: Phil Sutter Date: Fri, 25 Nov 2022 20:47:52 +0000 (+0100) Subject: xshared: Free data after printing help X-Git-Tag: v1.8.9~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16e1ce4ed32ac86eb834531282ae14fdb4e102ac;p=thirdparty%2Fiptables.git 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 --- 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); /*