mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 20:00:23 +01:00
nm-dispatcher: fix memory leaks
This commit is contained in:
parent
0bc335cfbe
commit
2e2e588cd5
1 changed files with 2 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue