mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: ext/soap/php_http.c: Fix memory leak of header value
This commit is contained in:
@@ -1144,11 +1144,11 @@ try_again:
|
||||
|
||||
if ((loc = get_http_header_value(ZSTR_VAL(http_headers), "Location:")) != NULL) {
|
||||
php_url *new_url = php_url_parse(loc);
|
||||
efree(loc);
|
||||
|
||||
if (new_url != NULL) {
|
||||
zend_string_release_ex(http_headers, 0);
|
||||
zend_string_release_ex(http_body, 0);
|
||||
efree(loc);
|
||||
if (new_url->scheme == NULL && new_url->path != NULL) {
|
||||
new_url->scheme = phpurl->scheme ? zend_string_copy(phpurl->scheme) : NULL;
|
||||
new_url->host = phpurl->host ? zend_string_copy(phpurl->host) : NULL;
|
||||
|
||||
Reference in New Issue
Block a user