mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 03:30:31 +01:00
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:
parent
8b2de26936
commit
57d04625d8
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue