nm-dispatcher: fix memory leaks

This commit is contained in:
Beniamino Galvani 2015-07-16 09:23:52 +02:00
parent 0bc335cfbe
commit 2e2e588cd5

View file

@ -145,6 +145,7 @@ request_free (Request *request)
g_strfreev (request->envp);
if (request->scripts)
g_ptr_array_free (request->scripts, TRUE);
g_free (request);
}
static gboolean
@ -514,7 +515,7 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
g_message ("\n");
}
request->iface = g_strdup (iface);
request->iface = iface;
request->scripts = g_ptr_array_new_full (5, script_info_free);
for (iter = sorted_scripts; iter; iter = g_slist_next (iter)) {