mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 14:00:11 +01:00
libnm-core: fix memleak in nm-setting-vlan.c (priority_strv_to_maplist())
(cherry picked from commit f23320478d)
This commit is contained in:
parent
dbacb9ae09
commit
4d89a986ad
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