summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-directory-view.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-02-23 18:01:57 +0100
committerPablo Barciela <[email protected]>2019-03-05 01:19:40 +0100
commit7b605dd4d10b44aa8fd998d75dc2862edeea8629 (patch)
treee7038b181d80fc250c9269a1e76e89be5f9dadf3 /src/file-manager/fm-directory-view.c
parent58312fdac5009d104ac32481a03dd130d91ebef7 (diff)
downloadcaja-7b605dd4d10b44aa8fd998d75dc2862edeea8629.tar.bz2
caja-7b605dd4d10b44aa8fd998d75dc2862edeea8629.tar.xz
fm-directory-view: Fix use of memory after it is freed
to avoid warning with Clang Analyzer
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r--src/file-manager/fm-directory-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 3c61e5a6..ef3daa87 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -5386,7 +5386,6 @@ run_script_callback (GtkAction *action, gpointer callback_data)
g_free (file_uri);
quoted_path = g_shell_quote (local_file_path);
- g_free (local_file_path);
old_working_dir = change_to_view_directory (launch_parameters->directory_view);
@@ -5406,6 +5405,7 @@ run_script_callback (GtkAction *action, gpointer callback_data)
window, name, local_file_path);
caja_launch_application_from_command_array (screen, name, quoted_path, FALSE,
(const char * const *) parameters);
+ g_free (local_file_path);
g_free (name);
g_strfreev (parameters);