mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix memory-leak in CLI web server
This commit is contained in:
commit
f8b53e7028
1 changed files with 1 additions and 0 deletions
|
@ -1682,6 +1682,7 @@ static void php_cli_server_client_save_header(php_cli_server_client *client)
|
|||
zend_hash_add(&client->request.headers_original_case, client->current_header_name, &tmp);
|
||||
|
||||
zend_string_release_ex(lc_header_name, /* persistent */ true);
|
||||
zend_string_release_ex(client->current_header_name, /* persistent */ true);
|
||||
|
||||
client->current_header_name = NULL;
|
||||
client->current_header_value = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue