From c44de2807a899521c8542321d91e3074f3c40086 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 8 Jan 2008 08:12:44 +0000 Subject: fixed some memory leaks in new code -- thanks to varmojfekoj for the patch --- queue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'queue.c') diff --git a/queue.c b/queue.c index bd7aace1..29b5e43e 100644 --- a/queue.c +++ b/queue.c @@ -741,6 +741,7 @@ rsRetVal queueDestruct(queue_t *pThis) for(i = 0 ; i < pThis->iNumWorkerThreads ; ++i) { pthread_join(pThis->pWorkerThreads[i], NULL); } + free(pThis->pWorkerThreads); dbgprintf("Worker threads for queue 0x%lx terminated.\n", (unsigned long) pThis); } -- cgit v1.2.3