mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 00:47:59 +02:00
dispatcher: fix memleak in construct_device_dhcp4_items()
When iterating over a container variant, the children values must be unrefed when no longer used.
This commit is contained in:
parent
3cde821344
commit
acd6226e8a
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ construct_device_dhcp4_items (GSList *items, GVariant *dhcp4_config)
|
|||
tmp = g_variant_get_string (val, NULL);
|
||||
items = g_slist_prepend (items, g_strdup_printf ("DHCP4_%s=%s", ucased, tmp));
|
||||
g_free (ucased);
|
||||
g_variant_unref (val);
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue