From 0864de615c9dfae488e20dc10526ce7d410c9b0c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 19 Mar 2026 08:13:20 +0200 Subject: fix: avoid double-free in ithread drain loop (task 472) --- ioriot/src/init/ithread.c | 2 -- 1 file changed, 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); -- cgit v1.2.3