summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-12 15:59:20 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-12 15:59:20 +0200
commitcb950730917a823302cf44ee0323b3f9c5ad6f1c (patch)
treea42440f9ea6b58961efa609998765ce16f30e310 /action.c
parent74abe7ba6a0a151a437abdb4e8374a240e5ea60a (diff)
downloadrsyslog-cb950730917a823302cf44ee0323b3f9c5ad6f1c.tar.gz
rsyslog-cb950730917a823302cf44ee0323b3f9c5ad6f1c.tar.xz
rsyslog-cb950730917a823302cf44ee0323b3f9c5ad6f1c.zip
new ruleengine: fix memory leak
Diffstat (limited to 'action.c')
-rw-r--r--action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/action.c b/action.c
index bc96ea9d..a87f8839 100644
--- a/action.c
+++ b/action.c
@@ -1725,6 +1725,9 @@ doQueueEnqObjDirectBatch(action_t *pAction, batch_t *pBatch)
countStatsBatchEnq(pAction, pBatch);
iRet = qqueueEnqObjDirectBatch(pAction->pQueue, pBatch);
}
+
+ free(pBatch->active);
+ pBatch->active = activeSave;
RETiRet;
}