mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 07:30:10 +01:00
libnm-core: fix memleak in nm-setting-vlan.c (priority_strv_to_maplist())
(cherry picked from commitf23320478d) (cherry picked from commit4d89a986ad)
This commit is contained in:
parent
84563b7a6d
commit
7f37f2fdae
1 changed files with 2 additions and 0 deletions
|
|
@ -720,6 +720,8 @@ priority_strv_to_maplist (NMVlanPriorityMap map, char **strv)
|
|||
if (item) {
|
||||
if (!check_replace_duplicate_priority (list, item->from, item->to))
|
||||
list = g_slist_prepend (list, item);
|
||||
else
|
||||
g_free (item);
|
||||
}
|
||||
}
|
||||
return g_slist_sort (list, prio_map_compare);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue