1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-26 22:56:26 +00:00

Clean up pointer to task object

This commit is contained in:
Dirk Engling 2024-04-01 00:52:34 +02:00
parent 73e839f5ff
commit 9275eb3f82

View File

@ -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;
}