Skip to content

Commit 7b605dd

Browse files
committed
fm-directory-view: Fix use of memory after it is freed
to avoid warning with Clang Analyzer
1 parent 58312fd commit 7b605dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file-manager/fm-directory-view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5386,7 +5386,6 @@ run_script_callback (GtkAction *action, gpointer callback_data)
53865386
g_free (file_uri);
53875387

53885388
quoted_path = g_shell_quote (local_file_path);
5389-
g_free (local_file_path);
53905389

53915390
old_working_dir = change_to_view_directory (launch_parameters->directory_view);
53925391

@@ -5406,6 +5405,7 @@ run_script_callback (GtkAction *action, gpointer callback_data)
54065405
window, name, local_file_path);
54075406
caja_launch_application_from_command_array (screen, name, quoted_path, FALSE,
54085407
(const char * const *) parameters);
5408+
g_free (local_file_path);
54095409
g_free (name);
54105410
g_strfreev (parameters);
54115411

0 commit comments

Comments
 (0)