mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 12:40:16 +01:00
libnm: fix memleak in nm_connection_replace_settings()
This commit is contained in:
parent
66be46309a
commit
fffd93b5c4
1 changed files with 2 additions and 0 deletions
|
|
@ -304,6 +304,8 @@ nm_connection_replace_settings (NMConnection *connection,
|
|||
for (s = settings; s; s = s->next)
|
||||
_nm_connection_add_setting (connection, s->data);
|
||||
|
||||
g_slist_free (settings);
|
||||
|
||||
if (changed)
|
||||
g_signal_emit (connection, signals[CHANGED], 0);
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue