ofono: Fix memory leak in network activation
authorHenri Bragge <henri.bragge@ixonos.com>
Thu, 17 Feb 2011 11:51:25 +0000 (13:51 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Feb 2011 23:45:14 +0000 (00:45 +0100)
plugins/ofono.c

index 29aaa61..066e9b7 100644 (file)
@@ -444,7 +444,7 @@ static int set_network_active(struct connman_network *network,
 
        error = set_property(path, OFONO_CONTEXT_INTERFACE,
                                "Active", DBUS_TYPE_BOOLEAN, &active,
-                               set_active_reply, g_strdup(path), NULL);
+                               set_active_reply, g_strdup(path), g_free);
 
        if (active == FALSE && error == -EINPROGRESS)
                error = 0;