diff options
Diffstat (limited to 'iptables-standalone.c')
-rw-r--r-- | iptables-standalone.c | 6 |
1 files changed, 4 insertions, 2 deletions
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", |