From 2e2e588cd515e9d928091321887c720f3311158b Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 16 Jul 2015 09:23:52 +0200 Subject: [PATCH] nm-dispatcher: fix memory leaks --- callouts/nm-dispatcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) {