Fix GH-15023: Memory leak in Zend/zend_ini.c

Closes GH-15024.
This commit is contained in:
Niels Dossche 2024-07-19 13:34:17 +02:00
parent 03d73182d9
commit 8c19efdc97
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5
2 changed files with 2 additions and 0 deletions

1
NEWS
View file

@ -5,6 +5,7 @@ PHP NEWS
- Core:
. Fixed bug GH-15020 (Memory leak in Zend/Optimizer/escape_analysis.c).
(nielsdos)
. Fixed bug GH-15023 (Memory leak in Zend/zend_ini.c). (nielsdos)
- Curl:
. Fixed case when curl_error returns an empty string.

View file

@ -243,6 +243,7 @@ ZEND_API zend_result zend_register_ini_entries_ex(const zend_ini_entry_def *ini_
if (p->name) {
zend_string_release_ex(p->name, 1);
}
pefree(p, true);
zend_unregister_ini_entries_ex(module_number, module_type);
return FAILURE;
}