commit | 1c9015b2cb483678f153121255e10ec0bbfde3e6 | [log] [tgz] |
---|---|---|
author | Jan Engelhardt <jengelh@medozas.de> | Mon Nov 10 17:00:41 2008 +0100 |
committer | Patrick McHardy <kaber@trash.net> | Mon Nov 10 17:00:41 2008 +0100 |
tree | ceb7afdf25de51701556fffc7469bc7c4c270570 | |
parent | fd1873110f8e57be578df17fc9d03536b10f4f73 [diff] [blame] |
libiptc: remove indirections Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
diff --git a/iptables-standalone.c b/iptables-standalone.c index d62c317..001bb04 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c
@@ -67,8 +67,10 @@ #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",