diff options
Diffstat (limited to 'libiptc/libiptc.c')
-rw-r--r-- | libiptc/libiptc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 396bc8f5..13e41d52 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1993,8 +1993,10 @@ static int delete_entry(const IPT_CHAINLABEL chain, const STRUCT_ENTRY *origfw, continue; /* if we are just doing a dry run, we simply skip the rest */ - if (dry_run) + if (dry_run){ + free(r); return 1; + } /* If we are about to delete the rule that is the * current iterator, move rule iterator back. next |