summaryrefslogtreecommitdiffstats
path: root/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-08 08:12:44 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-08 08:12:44 +0000
commitc44de2807a899521c8542321d91e3074f3c40086 (patch)
treee45a959a2f68d9cedffc30b69443bd19d1b0a399 /queue.c
parent4a50211fc1334513013da769174b74a656bfeae3 (diff)
downloadrsyslog-c44de2807a899521c8542321d91e3074f3c40086.tar.gz
rsyslog-c44de2807a899521c8542321d91e3074f3c40086.tar.xz
rsyslog-c44de2807a899521c8542321d91e3074f3c40086.zip
fixed some memory leaks in new code -- thanks to varmojfekoj for the patch
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c1
1 files changed, 1 insertions, 0 deletions
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);
}