fixed a memory leak when sending messages in zip-compressed format

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
This commit is contained in:
Naoya Nakazawa 2010-01-11 12:34:46 +01:00 committed by Rainer Gerhards
parent a65f638523
commit 009738a0ac
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
- fixed a memory leak when sending messages in zip-compressed format
Thanks to Naoya Nakazawa for analyzing this issue and providing a patch.
---------------------------------------------------------------------------
Version 4.5.7 [v4-beta] (rgerhards), 2009-11-18
- added a so-called "On Demand Debug" mode, in which debug output can

View File

@ -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