diff options
author | Thomas Haller <thaller@redhat.com> | 2014-06-17 19:09:56 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-06-17 19:09:56 +0200 |
commit | 589272facfe68afaf2bf434d79a270d53175830d (patch) | |
tree | e46ade5ad885d3fd4cdfe63648b8c33aed82aa2d /callouts | |
parent | ec1034a03a8f929ba9040f49f66fb5f5ef8ba8a1 (diff) |
dispatcher: fix leak in callouts/nm-dispatcher
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'callouts')
-rw-r--r-- | callouts/nm-dispatcher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/callouts/nm-dispatcher.c b/callouts/nm-dispatcher.c index 680715d1cd..57e4ac3c1d 100644 --- a/callouts/nm-dispatcher.c +++ b/callouts/nm-dispatcher.c @@ -459,7 +459,9 @@ find_scripts (const char *str_action) else { /* success */ sorted = g_slist_insert_sorted (sorted, path, (GCompareFunc) g_strcmp0); + path = NULL; } + g_free (path); } g_dir_close (dir); |