mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix GH-15023: Memory leak in Zend/zend_ini.c
Closes GH-15024.
This commit is contained in:
parent
03d73182d9
commit
8c19efdc97
2 changed files with 2 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue