mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 08:10:08 +01:00
keyfile: fix memleak of path in commit_changes()
This commit is contained in:
parent
47cc91bef6
commit
c863d2ad0f
1 changed files with 3 additions and 1 deletions
|
|
@ -104,8 +104,10 @@ commit_changes (NMSettingsConnection *connection,
|
|||
}
|
||||
|
||||
/* Update the filename if it changed */
|
||||
if (path)
|
||||
if (path) {
|
||||
nm_settings_connection_set_filename (connection, path);
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
NM_SETTINGS_CONNECTION_CLASS (nm_keyfile_connection_parent_class)->commit_changes (connection,
|
||||
callback,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue