summaryrefslogtreecommitdiff
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-02-25 17:07:07 +0100
committerMichael Biebl <biebl@debian.org>2011-02-25 17:07:07 +0100
commit4f45cc34384973b3643148c21a5ede489ab05f86 (patch)
tree3ef7ec9f373a99ef2c7f0bbbfd017fb2abacde43 /runtime/queue.c
parent0116bd2a5f70ce1065933c47903a3bb4cd4fe9e0 (diff)
downloadrsyslog-4f45cc34384973b3643148c21a5ede489ab05f86.tar.gz
Imported Upstream version 5.7.6upstream/5.7.6
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 76327f6..ef6e843 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -842,6 +842,7 @@ static rsRetVal qAddDirect(qqueue_t *pThis, void* pUsr)
{
batch_t singleBatch;
batch_obj_t batchObj;
+ int i;
DEFiRet;
//TODO: init batchObj (states _OK and new fields -- CHECK)
@@ -863,6 +864,10 @@ 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, &pThis->bShutdownImmediate);
+ /* delete the batch string params: TODO: create its own "class" for this */
+ for(i = 0 ; i < CONF_OMOD_NUMSTRINGS_MAXSIZE ; ++i) {
+ free(batchObj.staticActStrings[i]);
+ }
objDestruct(pUsr);
RETiRet;