Fix memory leak in async_job_free

This commit is contained in:
Twinaphex 2016-05-06 19:14:38 +02:00
parent 648da7b6e6
commit 77649b2f23

View File

@ -112,6 +112,7 @@ void async_job_free(async_job_t *ajob)
ajob->finish = 1;
ssem_signal(ajob->sem);
sthread_join(ajob->thread);
slock_free(ajob->lock);
ssem_free(ajob->sem);
free((void*)ajob);