]> granicus.if.org Git - php/commitdiff
Fixed bug #33523 (Memory leak in xmlrpc_encode_request()).
authorIlia Alshanetsky <iliaa@php.net>
Thu, 30 Jun 2005 22:29:36 +0000 (22:29 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 30 Jun 2005 22:29:36 +0000 (22:29 +0000)
NEWS
ext/xmlrpc/xmlrpc-epi-php.c

diff --git a/NEWS b/NEWS
index 68af2eee925a82289b69b835248faba5beec461c..3c631d59795fcea798427452d75b7fdc33446945 100644 (file)
--- 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)
index 90cbe8863a7455b18c75a3ad050c075e35ebab5c..01789c1c92e2ba130130f39f9503107bdb7ed22e 100644 (file)
@@ -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);
+       }
 }
 /* }}} */