Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
main: fix tasklet memory leak
  • Loading branch information
perexg committed Nov 4, 2015
1 parent f99ef9f commit 14a80d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Expand Up @@ -421,6 +421,8 @@ tasklet_thread ( void *aux )
tsk->tsk_callback = NULL;
}
TAILQ_REMOVE(&tasklets, tsk, tsk_link);
if (tsk->tsk_allocated)
free(tsk);
}
pthread_mutex_unlock(&tasklet_lock);

Expand Down

0 comments on commit 14a80d9

Please sign in to comment.