FREE_POINTER of job->rdepends was at the wrong place (memory leak)

This commit is contained in:
Laurent Fasnacht 2014-05-22 07:15:18 +02:00
parent 3b38777b71
commit 3a30a886fc

View file

@ -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;