Skip to content

Commit ac3eb67

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Fix memory leaks in php_http.c when call_user_function() fails
2 parents 25e60d6 + 8375574 commit ac3eb67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/soap/php_http.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ int make_http_soap_request(zval *this_ptr,
411411
} else {
412412
zval_ptr_dtor(&params[0]);
413413
zval_ptr_dtor(&func);
414+
zval_ptr_dtor(&retval);
414415
if (request != buf) {
415416
zend_string_release_ex(request, 0);
416417
}
@@ -1329,6 +1330,7 @@ int make_http_soap_request(zval *this_ptr,
13291330
} else {
13301331
zval_ptr_dtor(&params[0]);
13311332
zval_ptr_dtor(&func);
1333+
zval_ptr_dtor(&retval);
13321334
efree(content_encoding);
13331335
zend_string_release_ex(http_headers, 0);
13341336
zend_string_release_ex(http_body, 0);

0 commit comments

Comments
 (0)