summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-02-23 18:01:57 +0100
committerZenWalker <[email protected]>2019-03-04 12:52:01 +0100
commit372f21aea76e7119e4a313b73e4f08374b0d4fc4 (patch)
treedcb159168428a5c50bc92fb0c14b097a58fe49aa /src
parent4d97ffc90429fb6e6d77920e9939613450b5996f (diff)
downloadcaja-372f21aea76e7119e4a313b73e4f08374b0d4fc4.tar.bz2
caja-372f21aea76e7119e4a313b73e4f08374b0d4fc4.tar.xz
fm-directory-view: Fix use of memory after it is freed
to avoid warning with Clang Analyzer
Diffstat (limited to 'src')
-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 60704617..1387464b 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -5385,7 +5385,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);
@@ -5405,6 +5404,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);