From: Ilia Alshanetsky Date: Thu, 8 Dec 2005 03:01:37 +0000 (+0000) Subject: MFH: Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). X-Git-Tag: php-4.4.2RC2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2bd775faeca94dcc715c4a866e22b961f3b68a2;p=php MFH: Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). --- diff --git a/NEWS b/NEWS index 36321ebc39..5dce0d5987 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ PHP 4 NEWS - Fixed bug #35062 (socket_read() produces warnings on non blocking sockets). (Nuno, Ilia) - Fixed bug #34359 (Possible crash inside fopen http wrapper). (Ilia,Nuno,Sara) +- Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). (Ilia) - Fixed bug #33153 (crash in mssql_next result). (Frank) - Fixed bug #32009 (crash when mssql_bind() is called more than once). (Frank) - Fixed bug #33963 (mssql_bind() fails on input parameters). (Frank) diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index 6a83899659..8e84d25677 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -684,8 +684,13 @@ PHP_FUNCTION(xmlrpc_encode_request) free(outBuf); } XMLRPC_RequestFree(xRequest, 1); + + } } + if (out.xmlrpc_out.xml_elem_opts.encoding != ENCODING_DEFAULT) { + efree(out.xmlrpc_out.xml_elem_opts.encoding); + } } /* }}} */