summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNaoya Nakazawa <naoya.n@gmail.com>2010-01-11 12:34:46 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-01-11 12:34:46 +0100
commit009738a0ac6ba0dccf403f9e396095f44e4f9ac6 (patch)
treeb116d26e64caa0c90ccb6fb6a58ab4edb7ef383a /tools
parenta65f638523ec5d2c7b2b68bdaea174f5bd8b719f (diff)
downloadrsyslog-009738a0ac6ba0dccf403f9e396095f44e4f9ac6.tar.gz
rsyslog-009738a0ac6ba0dccf403f9e396095f44e4f9ac6.tar.xz
rsyslog-009738a0ac6ba0dccf403f9e396095f44e4f9ac6.zip
fixed a memory leak when sending messages in zip-compressed format
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/omfwd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/omfwd.c b/tools/omfwd.c
index fe65f515..02f19eac 100644
--- a/tools/omfwd.c
+++ b/tools/omfwd.c
@@ -483,6 +483,12 @@ CODESTARTdoAction
}
}
finalize_it:
+# ifdef USE_NETZIP
+ if(psz != (char*) ppString[0]) {
+ /* we need to free temporary buffer, alloced above - Naoya Nakazawa, 2010-01-11 */
+ free(psz);
+ }
+# endif
ENDdoAction