mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 01:50:25 +01:00
device: fix leaking GSList element in _replace_vpn_config_in_list()
Fixes: 9bbf5e94c2
This commit is contained in:
parent
639f2d4b05
commit
fd9eeca3be
1 changed files with 1 additions and 1 deletions
|
|
@ -7937,7 +7937,7 @@ _replace_vpn_config_in_list (GSList **plist, GObject *old, GObject *new)
|
|||
if (new)
|
||||
old_link->data = g_object_ref (new);
|
||||
else
|
||||
*plist = g_slist_remove_link (*plist, old_link);
|
||||
*plist = g_slist_delete_link (*plist, old_link);
|
||||
g_object_unref (old);
|
||||
}
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue