From 009738a0ac6ba0dccf403f9e396095f44e4f9ac6 Mon Sep 17 00:00:00 2001 From: Naoya Nakazawa Date: Mon, 11 Jan 2010 12:34:46 +0100 Subject: fixed a memory leak when sending messages in zip-compressed format Signed-off-by: Rainer Gerhards --- tools/omfwd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/omfwd.c') 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 -- cgit