summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-02-25 11:07:47 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-02-25 11:07:47 +0100
commite9aca61ad35a35ad8c3c7c6b8a608b4ff94312be (patch)
treefd166a50fb1f6e3e59c4b16b80f29850fb13b6c1 /runtime
parent7bccae395b83416be6bea2de69fdfcce46995acf (diff)
parentdfa88369d4ca4290db56b843f9eabdae1bfe0fd5 (diff)
downloadrsyslog-e9aca61ad35a35ad8c3c7c6b8a608b4ff94312be.tar.gz
rsyslog-e9aca61ad35a35ad8c3c7c6b8a608b4ff94312be.tar.xz
rsyslog-e9aca61ad35a35ad8c3c7c6b8a608b4ff94312be.zip
Merge branch 'v5-stable' into v5-beta
Conflicts: ChangeLog
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 76327f6a..ef6e843b 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;