# HG changeset patch # User John Tsiombikas # Date 1391485351 -7200 # Node ID 03f3de659c3225a102690be38444235510984288 # Parent 86465d3d05d2f11ceee022f5dbd55bb80bdf2d78 threadpool: forgot to free the job after running the work callback diff -r 86465d3d05d2 -r 03f3de659c32 src/threadpool.c --- a/src/threadpool.c Mon Feb 03 05:24:22 2014 +0200 +++ b/src/threadpool.c Tue Feb 04 05:42:31 2014 +0200 @@ -117,6 +117,8 @@ tpool->work_list = tpool->work_list->next; tpool->work_func(job->data, tpool->cls); + + free_node(job); } pthread_mutex_unlock(&tpool->work_lock); return 0;