mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix memory leaks in php_http.c when call_user_function() fails
This commit is contained in:
commit
ac3eb678aa
1 changed files with 2 additions and 0 deletions
|
@ -411,6 +411,7 @@ int make_http_soap_request(zval *this_ptr,
|
|||
} else {
|
||||
zval_ptr_dtor(¶ms[0]);
|
||||
zval_ptr_dtor(&func);
|
||||
zval_ptr_dtor(&retval);
|
||||
if (request != buf) {
|
||||
zend_string_release_ex(request, 0);
|
||||
}
|
||||
|
@ -1329,6 +1330,7 @@ try_again:
|
|||
} else {
|
||||
zval_ptr_dtor(¶ms[0]);
|
||||
zval_ptr_dtor(&func);
|
||||
zval_ptr_dtor(&retval);
|
||||
efree(content_encoding);
|
||||
zend_string_release_ex(http_headers, 0);
|
||||
zend_string_release_ex(http_body, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue