fixed memory leak in factory
authorImran Zaman <imran.zaman@linux.intel.com>
Tue, 11 Jun 2013 12:10:15 +0000 (15:10 +0300)
committerImran Zaman <imran.zaman@linux.intel.com>
Tue, 11 Jun 2013 12:10:15 +0000 (15:10 +0300)
src/daemon/plugins/gsignond-plugin-proxy-factory.c

index 7119743..4f94e4a 100644 (file)
@@ -246,8 +246,11 @@ gsignond_plugin_proxy_factory_new(GSignondConfig *config)
 static gboolean
 _find_proxy_by_pointer (gpointer key, gpointer value, gpointer userdata)
 {
-    (void)key;
-    return userdata == value;
+    if (userdata == value) {
+        g_free (key);
+        return TRUE;
+    }
+    return FALSE;
 }
 
 static void