mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-20 03:40:47 +02:00
libnm: fix memleak in nm_connection_replace_settings()
(cherry picked from commit fffd93b5c4)
This commit is contained in:
parent
ec07ac40aa
commit
727edf43f6
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