From 3a0872d08fc71d9bb9ec3d431260f838725d3b8d Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Wed, 19 Oct 2016 13:43:31 +0100 Subject: Implement #72612 (libxmlrc uses system malloc instead of PHP alloc routines) --- ext/xmlrpc/xmlrpc-epi-php.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/xmlrpc/xmlrpc-epi-php.c') 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); -- cgit v1.2.1