From 16e1ce4ed32ac86eb834531282ae14fdb4e102ac Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 25 Nov 2022 21:47:52 +0100 Subject: 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 --- iptables/xshared.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iptables') 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); /* -- cgit v1.2.3