tools: Fixed double-free error possibility into iptables-test
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Fri, 23 Sep 2011 11:43:49 +0000 (14:43 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 29 Sep 2011 15:53:00 +0000 (17:53 +0200)
tools/iptables-test.c

index c3cf671..35c6300 100644 (file)
@@ -1149,6 +1149,7 @@ static struct connman_iptables *connman_iptables_init(const char *table_name)
                goto err;
 
        g_free(module);
+       module = NULL;
 
        table =  g_try_new0(struct connman_iptables, 1);
        if (table == NULL)