projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bc335c
)
nm-dispatcher: fix memory leaks
author
Beniamino Galvani
<bgalvani@redhat.com>
Thu, 16 Jul 2015 07:23:52 +0000
(09:23 +0200)
committer
Beniamino Galvani
<bgalvani@redhat.com>
Tue, 25 Aug 2015 13:27:18 +0000
(15:27 +0200)
callouts/nm-dispatcher.c
patch
|
blob
|
history
diff --git
a/callouts/nm-dispatcher.c
b/callouts/nm-dispatcher.c
index
3cb50b5
..
5349089
100644
(file)
--- 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)) {