diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-22 16:06:29 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-22 16:06:29 +0200 |
commit | 236bdb5cfaf56d9192a9911f140ba3da95b390b6 (patch) | |
tree | c69594b004f5a846b833547575f61841f6f997b0 /runtime | |
parent | 5defa14fed704cabe2074f4bdbb6d389d6dee7cf (diff) | |
download | rsyslog-236bdb5cfaf56d9192a9911f140ba3da95b390b6.tar.gz rsyslog-236bdb5cfaf56d9192a9911f140ba3da95b390b6.tar.xz rsyslog-236bdb5cfaf56d9192a9911f140ba3da95b390b6.zip |
bugfix: huge memory leak in queue engine
(made rsyslogd unusable in production). Occured if at least one queue
was in direct mode (the default for action queues).
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index e18ce3d7..9462f865 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -1089,6 +1089,7 @@ static rsRetVal qAddDirect(qqueue_t *pThis, void* pUsr) singleBatch.nElem = 1; /* there always is only one in direct mode */ singleBatch.pElem = &batchObj; iRet = pThis->pConsumer(pThis->pUsr, &singleBatch); + objDestruct(pUsr); RETiRet; } |