Though in reality, this wouldn't happen. Signed-off-by: Liu Yuan <namei.unix at gmail.com> --- lib/work.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/work.c b/lib/work.c index d483136..35413ff 100644 --- a/lib/work.c +++ b/lib/work.c @@ -428,6 +428,7 @@ destroy_threads: sd_destroy_cond(&wi->pending_cond); sd_destroy_mutex(&wi->pending_lock); sd_destroy_mutex(&wi->finished_lock); + free(wi); return NULL; } -- 1.8.1.2 |