Skip to content

Commit 8c19efd

Browse files
committed
Fix GH-15023: Memory leak in Zend/zend_ini.c
Closes GH-15024.
1 parent 03d7318 commit 8c19efd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- Core:
66
. Fixed bug GH-15020 (Memory leak in Zend/Optimizer/escape_analysis.c).
77
(nielsdos)
8+
. Fixed bug GH-15023 (Memory leak in Zend/zend_ini.c). (nielsdos)
89

910
- Curl:
1011
. Fixed case when curl_error returns an empty string.

Zend/zend_ini.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ ZEND_API zend_result zend_register_ini_entries_ex(const zend_ini_entry_def *ini_
243243
if (p->name) {
244244
zend_string_release_ex(p->name, 1);
245245
}
246+
pefree(p, true);
246247
zend_unregister_ini_entries_ex(module_number, module_type);
247248
return FAILURE;
248249
}

0 commit comments

Comments
 (0)