diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-17 18:24:25 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-17 18:24:25 +0100 |
commit | 68614b3481db24c6bce87288b162352e0a4deb36 (patch) | |
tree | 6daac899479f7f08bd3bb205629d1c024e3f714a /action.c | |
parent | cb4bc708b1a0b15e6c22fd457b6dfa456e4d3d15 (diff) | |
download | rsyslog-68614b3481db24c6bce87288b162352e0a4deb36.tar.gz rsyslog-68614b3481db24c6bce87288b162352e0a4deb36.tar.xz rsyslog-68614b3481db24c6bce87288b162352e0a4deb36.zip |
bugfix: memory leak in array passing output module mode
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -868,8 +868,9 @@ static rsRetVal releaseBatch(action_t *pAction, batch_t *pBatch) if(((uchar**)ppMsgs)[j] != NULL) { jArr = 0; while(ppMsgs[j][jArr] != NULL) { - d_free(ppMsgs[j][jArr++]); - ppMsgs[j][jArr++] = NULL; + d_free(ppMsgs[j][jArr]); + ppMsgs[j][jArr] = NULL; + ++jArr; } d_free(((uchar**)ppMsgs)[j]); ((uchar**)ppMsgs)[j] = NULL; |