From 1c9015b2cb483678f153121255e10ec0bbfde3e6 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 10 Nov 2008 17:00:41 +0100 Subject: libiptc: remove indirections Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- iptables-standalone.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'iptables-standalone.c') diff --git a/iptables-standalone.c b/iptables-standalone.c index d62c317e..001bb04b 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -67,8 +67,10 @@ main(int argc, char *argv[]) #endif ret = do_command(argc, argv, &table, &handle); - if (ret) - ret = iptc_commit(&handle); + if (ret) { + ret = iptc_commit(handle); + iptc_free(handle); + } if (!ret) { fprintf(stderr, "iptables: %s\n", -- cgit v1.2.3