]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Fix memory leak in local options
authorDenys Fedoryschenko <denys@visp.net.lb>
Sat, 7 Feb 2009 13:49:32 +0000 (08:49 -0500)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 19 Feb 2009 17:04:06 +0000 (09:04 -0800)
This change was forgotten by Stephen in the last release

Signed-off-by: Denys Fedoryschenko <denys@visp.net.lb>
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
tc/m_ipt.c

index f5b7b3c117d6dde0173a7e39b06b1c07219326b8..5b9842867eec4a8880a383052bb966dc1faad18a 100644 (file)
@@ -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;
        }