summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-19 08:13:20 +0200
committerPaul Buetow <paul@buetow.org>2026-03-19 08:13:20 +0200
commit0864de615c9dfae488e20dc10526ce7d410c9b0c (patch)
treeb8b9313753ac83687dd78eab584fbb53fa299ce3
parent0095f21ecdc0601651c545ca9d0e544fc1f0fc95 (diff)
fix: avoid double-free in ithread drain loop (task 472)
-rw-r--r--ioriot/src/init/ithread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ioriot/src/init/ithread.c b/ioriot/src/init/ithread.c
index bcc31f3..953fe14 100644
--- a/ioriot/src/init/ithread.c
+++ b/ioriot/src/init/ithread.c
@@ -41,8 +41,6 @@ void* ithread_pthread_start(void *data)
while (NULL != (task = rbuffer_get_next(t->queue))) {
ithread_run_task(t, task);
- if (!rbuffer_insert(i->reuse_queue, task))
- itask_destroy(task);
pthread_mutex_lock(&i->reuse_queue_mutex);
int ret = rbuffer_insert(i->reuse_queue, task);