summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-01 00:52:34 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-01 00:52:34 +0200
commit9275eb3f82ed0f82d4fc2dad0a0728e76a774a04 (patch)
tree61c1c311258b121be7bb2f8cb3fa8d6d06971c5e
parent73e839f5ff0bdedc513f7668dc882d5f57208dca (diff)
Clean up pointer to task object
-rw-r--r--ot_mutex.c8
1 files 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 ) {
205 if ((*task)->tasktype == TASK_DONE) { 205 if ((*task)->tasktype == TASK_DONE) {
206 struct ot_task *ptask = *task; 206 struct ot_task *ptask = *task;
207 207
208 *iovec_entries = (*task)->iovec_entries; 208 *iovec_entries = ptask->iovec_entries;
209 *iovec = (*task)->iovec; 209 *iovec = ptask->iovec;
210 sock = (*task)->sock; 210 sock = ptask->sock;
211 211
212 *task = (*task)->next; 212 *task = ptask->next;
213 free( ptask ); 213 free( ptask );
214 break; 214 break;
215 } 215 }