diff --git a/src/sched.c b/src/sched.c index d577faf..6962adf 100644 --- a/src/sched.c +++ b/src/sched.c @@ -104,6 +104,8 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure) } } + free(sched.tasks); + return 1; }