Fixed memory leaks
authorDan Breslau <dbreslau@painless-security.com>
Mon, 15 Aug 2016 23:23:28 +0000 (19:23 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Mon, 15 Aug 2016 23:23:28 +0000 (19:23 -0400)
libmoonshot/libmoonshot-dbus.c

index 84f8975..e7c4b51 100644 (file)
@@ -435,6 +435,9 @@ int moonshot_install_id_card (const char     *display_name,
                        G_TYPE_INVALID);
 
     g_object_unref (dbus_proxy);
+    g_free(rules_patterns_strv);
+    g_free(rules_always_confirm_strv);
+    g_free(services_strv);
 
     if (g_error != NULL) {
         *error = moonshot_error_new (MOONSHOT_ERROR_IPC_ERROR,