From: Dmitry Stogov Date: Thu, 27 May 2004 08:19:29 +0000 (+0000) Subject: Memory leaks were fixed X-Git-Tag: php-5.0.0RC3RC1~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99a0504a6b5ecf82599c789e810c258534747659;p=php Memory leaks were fixed --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 315db5ec87..964b354ed4 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -1921,7 +1921,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act int ret = TRUE; char *buf; int buf_size; - zval func; + zval func, param0, param1, param2, param3; zval *params[4]; zval **trace; zval **fault; @@ -1941,13 +1941,17 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act INIT_ZVAL(func); ZVAL_STRINGL(&func,"__doRequest",sizeof("__doRequest")-1,0); - ALLOC_INIT_ZVAL(params[0]); + INIT_ZVAL(param0); + params[0] = ¶m0; ZVAL_STRINGL(params[0], buf, buf_size, 0); - ALLOC_INIT_ZVAL(params[1]); + INIT_ZVAL(param1); + params[1] = ¶m1; ZVAL_STRING(params[1], location, 0); - ALLOC_INIT_ZVAL(params[2]); + INIT_ZVAL(param2); + params[2] = ¶m2; ZVAL_STRING(params[2], action, 0); - ALLOC_INIT_ZVAL(params[3]); + INIT_ZVAL(param3); + params[3] = ¶m3; ZVAL_LONG(params[3], version); if (call_user_function(NULL, &this_ptr, &func, response, 4, params TSRMLS_CC) != SUCCESS) {