diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-11-10 17:00:41 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-10 17:00:41 +0100 |
commit | 1c9015b2cb483678f153121255e10ec0bbfde3e6 (patch) | |
tree | ceb7afdf25de51701556fffc7469bc7c4c270570 /ip6tables-standalone.c | |
parent | fd1873110f8e57be578df17fc9d03536b10f4f73 (diff) |
libiptc: remove indirections
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'ip6tables-standalone.c')
-rw-r--r-- | ip6tables-standalone.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ip6tables-standalone.c b/ip6tables-standalone.c index 9a0b2b37..ba30f0e6 100644 --- a/ip6tables-standalone.c +++ b/ip6tables-standalone.c @@ -66,8 +66,10 @@ main(int argc, char *argv[]) #endif ret = do_command6(argc, argv, &table, &handle); - if (ret) - ret = ip6tc_commit(&handle); + if (ret) { + ret = ip6tc_commit(handle); + ip6tc_free(handle); + } if (!ret) fprintf(stderr, "ip6tables: %s\n", |