summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }