keyfile: fix memleak of path in commit_changes()

This commit is contained in:
Thomas Haller 2015-07-17 10:50:07 +02:00
parent 47cc91bef6
commit c863d2ad0f

View file

@ -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,