dispatcher: fix leak in callouts/nm-dispatcher

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-06-17 19:09:56 +02:00
parent ec1034a03a
commit 589272facf

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