mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 04:50:07 +01:00
libnm: fix memleak in find_virtual_interface_name()
This commit is contained in:
parent
fffd93b5c4
commit
f1bfe459ee
1 changed files with 2 additions and 1 deletions
|
|
@ -968,8 +968,9 @@ find_virtual_interface_name (GVariant *connection_dict)
|
|||
|
||||
/* All of the deprecated virtual interface name properties were named "interface-name". */
|
||||
if (!g_variant_lookup (setting_dict, "interface-name", "&s", &interface_name))
|
||||
return NULL;
|
||||
interface_name = NULL;
|
||||
|
||||
g_variant_unref (setting_dict);
|
||||
return interface_name;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue