[nautilus/wip/ernestask/628: 2/2] batch-rename-dialog: Fix use after free
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/628: 2/2] batch-rename-dialog: Fix use after free
- Date: Tue, 16 Oct 2018 15:45:22 +0000 (UTC)
commit ad55aba56383c48c126c94e710e7d6c04dbb3001
Author: Ernestas Kulik <ernestask gnome org>
Date: Tue Oct 16 18:43:25 2018 +0300
batch-rename-dialog: Fix use after free
destroy_conflicts_task_data() frees the task data struct before clearing
the mutex and conditional variable inside it.
Addresses https://gitlab.gnome.org/GNOME/nautilus/issues/628
src/nautilus-batch-rename-dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index e35f40ef1..d5722e06c 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -1320,10 +1320,10 @@ destroy_conflicts_task_data (gpointer data)
g_list_free (task_data->directories);
}
- g_free (task_data);
-
g_mutex_clear (&task_data->wait_ready_mutex);
g_cond_clear (&task_data->wait_ready_condition);
+
+ g_free (task_data);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]