summaryrefslogtreecommitdiff
path: root/callouts
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-06-17 19:09:56 +0200
committerThomas Haller <thaller@redhat.com>2014-06-17 19:09:56 +0200
commit589272facfe68afaf2bf434d79a270d53175830d (patch)
treee46ade5ad885d3fd4cdfe63648b8c33aed82aa2d /callouts
parentec1034a03a8f929ba9040f49f66fb5f5ef8ba8a1 (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.c2
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);