diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-17 18:31:14 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-17 18:31:14 +0100 |
commit | 59c99b2d8b23f8903e2130b7a149981afe1a8bd3 (patch) | |
tree | fcc5118a875a75ab3ef0db4e5469d81372cf7989 /action.c | |
parent | 43607c303cdaf5adc4983c559fab66942e98cbe5 (diff) | |
download | rsyslog-59c99b2d8b23f8903e2130b7a149981afe1a8bd3.tar.gz rsyslog-59c99b2d8b23f8903e2130b7a149981afe1a8bd3.tar.xz rsyslog-59c99b2d8b23f8903e2130b7a149981afe1a8bd3.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
@@ -785,8 +785,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; |