From 9275eb3f82ed0f82d4fc2dad0a0728e76a774a04 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 1 Apr 2024 00:52:34 +0200 Subject: Clean up pointer to task object --- ot_mutex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ot_mutex.c b/ot_mutex.c index 1212245..88a7af8 100644 --- a/ot_mutex.c +++ b/ot_mutex.c @@ -205,11 +205,11 @@ int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovec ) { if ((*task)->tasktype == TASK_DONE) { struct ot_task *ptask = *task; - *iovec_entries = (*task)->iovec_entries; - *iovec = (*task)->iovec; - sock = (*task)->sock; + *iovec_entries = ptask->iovec_entries; + *iovec = ptask->iovec; + sock = ptask->sock; - *task = (*task)->next; + *task = ptask->next; free( ptask ); break; } -- cgit v1.2.3