From: Ilia Alshanetsky Date: Thu, 30 Jun 2005 22:29:36 +0000 (+0000) Subject: Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). X-Git-Tag: php-5.1.0b3~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=138b4435dd31d0513eb7099f83d640555db35c3c;p=php Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). --- diff --git a/NEWS b/NEWS index 68af2eee92..3c631d5979 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ PHP NEWS - Upgraded bundled SQLite library for PDO:SQLite to 3.2.2 (Ilia) - Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql. (Ilia) - Implemented feature request #33452 (Year belonging to ISO week). (Derick) +- Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). (Ilia) - Fixed bug #33491 (crash after extending MySQLi internal class). (Tony) - Fixed bug #33475 (cURL handle is not closed on curl_close(). (Ilia) - Fixed bug #33469 (Compile error undefined reference to ifx_checkAPI). (Jani) diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index 90cbe8863a..01789c1c92 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -667,6 +667,10 @@ PHP_FUNCTION(xmlrpc_encode_request) XMLRPC_RequestFree(xRequest, 1); } } + + if (out.xmlrpc_out.xml_elem_opts.encoding != ENCODING_DEFAULT) { + efree(out.xmlrpc_out.xml_elem_opts.encoding); + } } /* }}} */