From 1ddaa7deb0e00194e0bbeb5052192689b13719a2 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 16 Jan 2022 23:44:10 +0000 Subject: [PATCH] Fix a use after free. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3771 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/task.c b/src/task.c index e1ceea34..23f97e30 100644 --- a/src/task.c +++ b/src/task.c @@ -223,9 +223,9 @@ static bool _import_record_release(import_record_t** import) task->_import_count--; free(record); - return false; + return true; } - return true; + return false; } static void _import_record_release_for_task(tf_task_t* task, taskid_t task_id)