Some RHEL covscan found issues
At RHEL we pass covscan to Nautilus and this was found, need to investigate more the first one.
Error: USE_AFTER_FREE (CWE-825): [#def1]
nautilus-3.28.1/src/nautilus-batch-rename-dialog.c:1316: alias: Assigning: "task_data" = "data". Now both point to the same storage.
nautilus-3.28.1/src/nautilus-batch-rename-dialog.c:1323: freed_arg: "g_free" frees "task_data".
nautilus-3.28.1/src/nautilus-batch-rename-dialog.c:1325: deref_after_free: Dereferencing freed pointer "task_data".
# 1323| g_free (task_data);
# 1324|
# 1325|-> g_mutex_clear (&task_data->wait_ready_mutex);
# 1326| g_cond_clear (&task_data->wait_ready_condition);
# 1327| }
Error: USE_AFTER_FREE (CWE-825): [#def2]
nautilus-3.28.1/src/nautilus-files-view.c:5170: freed_arg: "g_free" frees "local_file_path".
nautilus-3.28.1/src/nautilus-files-view.c:5182: pass_freed_arg: Passing freed pointer "local_file_path" as an argument to "nautilus_debug".
# 5180| screen = gtk_widget_get_screen (GTK_WIDGET (launch_parameters->directory_view));
# 5181|
# 5182|-> DEBUG ("run_script, script_path=%s (omitting script parameters)",
# 5183| local_file_path);
# 5184|
Edited by Carlos Soriano