diff options
author | Joe Watkins <krakjoe@php.net> | 2016-10-19 13:43:31 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2016-10-19 13:43:31 +0100 |
commit | 3a0872d08fc71d9bb9ec3d431260f838725d3b8d (patch) | |
tree | 7f6f2967926cb7b1d8c1a2a0b61c6914d545147e /ext/xmlrpc/xmlrpc-epi-php.c | |
parent | 6ebb447d770aba2791da786c91a52a8ca493938c (diff) | |
download | php-git-3a0872d08fc71d9bb9ec3d431260f838725d3b8d.tar.gz |
Implement #72612 (libxmlrc uses system malloc instead of PHP alloc routines)
Diffstat (limited to 'ext/xmlrpc/xmlrpc-epi-php.c')
-rw-r--r-- | ext/xmlrpc/xmlrpc-epi-php.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index 368f8954ea..782a1317ec 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -701,7 +701,7 @@ PHP_FUNCTION(xmlrpc_encode_request) outBuf = XMLRPC_REQUEST_ToXML(xRequest, 0); if (outBuf) { RETVAL_STRING(outBuf); - free(outBuf); + efree(outBuf); } XMLRPC_RequestFree(xRequest, 1); } @@ -735,7 +735,7 @@ PHP_FUNCTION(xmlrpc_encode) if (xOut) { if (outBuf) { RETVAL_STRING(outBuf); - free(outBuf); + efree(outBuf); } /* cleanup */ XMLRPC_CleanupValue(xOut); @@ -1102,7 +1102,7 @@ PHP_FUNCTION(xmlrpc_server_call_method) outBuf = XMLRPC_REQUEST_ToXML(xResponse, &buf_len); if (outBuf) { RETVAL_STRINGL(outBuf, buf_len); - free(outBuf); + efree(outBuf); } /* cleanup after ourselves. what a sty! */ XMLRPC_RequestFree(xResponse, 0); |