diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-07-16 09:23:52 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-08-25 15:27:18 +0200 |
commit | 2e2e588cd515e9d928091321887c720f3311158b (patch) | |
tree | f37ea6ec32cfd45af17f259e307a8150a44b805c | |
parent | 0bc335cfbee754b472686cbad96cb6ad6d9c6a0a (diff) | |
download | NetworkManager-2e2e588cd515e9d928091321887c720f3311158b.tar.gz |
nm-dispatcher: fix memory leaks
-rw-r--r-- | callouts/nm-dispatcher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/callouts/nm-dispatcher.c b/callouts/nm-dispatcher.c index 3cb50b5790..5349089cea 100644 --- a/callouts/nm-dispatcher.c +++ b/callouts/nm-dispatcher.c @@ -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)) { |