From 20f5dd2f0837dacfbbe0fb7f0ab383b62768eda5 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 16 Nov 2022 12:43:08 +0100 Subject: c-e: use cleanup attribute in import_vpn_from_file_cb() for filename --- src/connection-editor/connection-helpers.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c index 6ed85577..bba4d92c 100644 --- a/src/connection-editor/connection-helpers.c +++ b/src/connection-editor/connection-helpers.c @@ -221,7 +221,7 @@ typedef struct { static void import_vpn_from_file_cb (GtkWidget *dialog, gint response, gpointer user_data) { - char *filename = NULL; + gs_free char *filename = NULL; ImportVpnInfo *info = (ImportVpnInfo *) user_data; NMConnection *connection = NULL; GError *error = NULL; @@ -251,8 +251,6 @@ import_vpn_from_file_cb (GtkWidget *dialog, gint response, gpointer user_data) info->user_data); } - g_free (filename); - out: if (!connection) { info->result_func (FUNC_TAG_PAGE_NEW_CONNECTION_RESULT_CALL, -- cgit v1.2.1