libnm-core: fix memleak in nm-setting-vlan.c (priority_strv_to_maplist())
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user