Fix GH-15020: Memory leak in Zend/Optimizer/escape_analysis.c

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

4
NEWS
View file

@ -2,6 +2,10 @@ PHP NEWS
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.2.23 ?? ??? ????, PHP 8.2.23
- Core:
. Fixed bug GH-15020 (Memory leak in Zend/Optimizer/escape_analysis.c).
(nielsdos)
- Curl: - Curl:
. Fixed case when curl_error returns an empty string. . Fixed case when curl_error returns an empty string.
(David Carlier) (David Carlier)

View file

@ -400,6 +400,7 @@ zend_result zend_ssa_escape_analysis(const zend_script *script, zend_op_array *o
} }
if (zend_build_equi_escape_sets(ees, op_array, ssa) == FAILURE) { if (zend_build_equi_escape_sets(ees, op_array, ssa) == FAILURE) {
free_alloca(ees, use_heap);
return FAILURE; return FAILURE;
} }