[network-manager-applet] c-e: fix leak in update_relabel_list_filename() (clear_name_if_present())



commit 16454572930b0d5ef813db270d235102ae5e9855
Author: Thomas Haller <thaller redhat com>
Date:   Tue Jun 26 10:46:31 2018 +0200

    c-e: fix leak in update_relabel_list_filename() (clear_name_if_present())

 src/connection-editor/nm-connection-editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index b0c9ab6f..46b7c534 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -189,7 +189,7 @@ static gboolean
 clear_name_if_present (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
 {
        gchar **filename = data;
-       gchar *existing;
+       gs_free char *existing = NULL;
 
        gtk_tree_model_get (model, iter, 2, &existing, -1);
        if (g_strcmp0 (existing, *filename) == 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]