gsupplicant network_path not freed while removing interface
authorLeena Gunda <leena.gunda@wipro.com>
Mon, 27 Dec 2010 08:44:36 +0000 (14:14 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 28 Dec 2010 20:59:12 +0000 (12:59 -0800)
Below is patch for:
http://bugs.meego.com/show_bug.cgi?id=11763

Free the network path of the connected WiFi when removing the interface.

gsupplicant/supplicant.c

index 42f4920..cc32d56 100644 (file)
@@ -406,6 +406,7 @@ static void remove_interface(gpointer data)
        callback_interface_removed(interface);
 
        g_free(interface->path);
+       g_free(interface->network_path);
        g_free(interface->ifname);
        g_free(interface->driver);
        g_free(interface->bridge);