From a589dcda9cc10c8475db18258e6456c1d9c15371 Mon Sep 17 00:00:00 2001 From: Denys Fedoryschenko Date: Sat, 7 Feb 2009 08:49:32 -0500 Subject: [PATCH] Fix memory leak in local options This change was forgotten by Stephen in the last release Signed-off-by: Denys Fedoryschenko Signed-off-by: Jamal Hadi Salim --- tc/m_ipt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/m_ipt.c b/tc/m_ipt.c index f5b7b3c11..5b9842867 100644 --- a/tc/m_ipt.c +++ b/tc/m_ipt.c @@ -162,10 +162,10 @@ int string_to_number(const char *s, unsigned int min, unsigned int max, return result; } -static void free_opts(struct option *opts) +static void free_opts(struct option *local_opts) { - if (opts != original_opts) { - free(opts); + if (local_opts != original_opts) { + free(local_opts); opts = original_opts; global_option_offset = 0; } -- 2.47.2