Skip to content


Browse files Browse the repository at this point in the history
fm-directory-view: Fix use of memory after it is freed
to avoid warning with Clang Analyzer
  • Loading branch information
sc0w committed Mar 5, 2019
1 parent 58312fd commit 7b605dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file-manager/fm-directory-view.c
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 7b605dd

Please sign in to comment.