From: <tom...@us...> - 2013-02-08 03:08:14
|
Revision: 3999 http://razorbacktm.svn.sourceforge.net/razorbacktm/?rev=3999&view=rev Author: tomjudge Date: 2013-02-08 03:08:08 +0000 (Fri, 08 Feb 2013) Log Message: ----------- Fix memory leak CID:10098 Modified Paths: -------------- api/trunk/src/binary_buffer.c Modified: api/trunk/src/binary_buffer.c =================================================================== --- api/trunk/src/binary_buffer.c 2013-02-08 03:01:14 UTC (rev 3998) +++ api/trunk/src/binary_buffer.c 2013-02-08 03:08:08 UTC (rev 3999) @@ -56,8 +56,11 @@ } - if (p_iSize > (uint32_t) Config_getMaxBlockSize ()) + if (p_iSize > (uint32_t) Config_getMaxBlockSize ()) + { + free(l_pBuffer); return NULL; + } l_pBuffer->iLength = p_iSize; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |