From c863d2ad0fb27d1ea39c4035e0683a86cfb911f3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 17 Jul 2015 10:50:07 +0200 Subject: [PATCH] keyfile: fix memleak of path in commit_changes() --- src/settings/plugins/keyfile/nm-keyfile-connection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/settings/plugins/keyfile/nm-keyfile-connection.c b/src/settings/plugins/keyfile/nm-keyfile-connection.c index 8fb94302d7..11762ee602 100644 --- a/src/settings/plugins/keyfile/nm-keyfile-connection.c +++ b/src/settings/plugins/keyfile/nm-keyfile-connection.c @@ -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,