From 3a30a886fcc0d4a0b8f671422f89eec1bd4eb835 Mon Sep 17 00:00:00 2001 From: Laurent Fasnacht Date: Thu, 22 May 2014 07:15:18 +0200 Subject: [PATCH] FREE_POINTER of job->rdepends was at the wrong place (memory leak) --- src/threadqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threadqueue.c b/src/threadqueue.c index 2f30700a..48536552 100644 --- a/src/threadqueue.c +++ b/src/threadqueue.c @@ -220,9 +220,9 @@ static void threadqueue_free_jobs(threadqueue_queue * const threadqueue) { fprintf(threadqueue->debug_log, "%p->%p\n", threadqueue->queue[i], threadqueue->queue[i]->rdepends[j]); } - FREE_POINTER(threadqueue->queue[i]->rdepends); FREE_POINTER(threadqueue->queue[i]->debug_description); #endif + FREE_POINTER(threadqueue->queue[i]->rdepends); FREE_POINTER(threadqueue->queue[i]); } threadqueue->queue_count = 0;