dispatcher: fix leak in callouts/nm-dispatcher

Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit 589272facf)
This commit is contained in:
Thomas Haller 2014-06-17 19:09:56 +02:00 committed by Dan Williams
parent 8b2de26936
commit 57d04625d8

View file

@ -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);