Browse Source

Clean up pointer to task object

master
Dirk Engling 8 months ago
parent
commit
9275eb3f82
  1. 8
      ot_mutex.c

8
ot_mutex.c

@ -205,11 +205,11 @@ int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovec ) {
if ((*task)->tasktype == TASK_DONE) { if ((*task)->tasktype == TASK_DONE) {
struct ot_task *ptask = *task; struct ot_task *ptask = *task;
*iovec_entries = (*task)->iovec_entries; *iovec_entries = ptask->iovec_entries;
*iovec = (*task)->iovec; *iovec = ptask->iovec;
sock = (*task)->sock; sock = ptask->sock;
*task = (*task)->next; *task = ptask->next;
free( ptask ); free( ptask );
break; break;
} }

Loading…
Cancel
Save