summaryrefslogtreecommitdiffstats
path: root/xtables.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-15 14:39:50 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-11-15 14:39:50 +0100
commita905ea5c97149da9d76cd278b0447e3316087a45 (patch)
tree9dfcf7b635697f8b06492376b8660aeaf5b77be1 /xtables.c
parent710a132ce9fbecedbf9447f2b2a134f2359a583c (diff)
parent59e8114c6792242e80785f4461d5e663fb9a3d64 (diff)
Merge branch 'master' of git://dev.medozas.de/iptables into m2
Diffstat (limited to 'xtables.c')
-rw-r--r--xtables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xtables.c b/xtables.c
index 7658038c..d0aa8688 100644
--- a/xtables.c
+++ b/xtables.c
@@ -75,7 +75,8 @@ void basic_exit_err(enum xtables_exittype status, const char *msg, ...)
void xtables_free_opts(int unused)
{
- free(xt_params->opts);
+ if (xt_params->opts != xt_params->orig_opts)
+ free(xt_params->opts);
}
struct option *xtables_merge_options(struct option *orig_opts,