1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-17403: Potential deadlock when putenv fails

Closes GH-18368.
This commit is contained in:
Niels Dossche
2025-04-20 22:57:58 +02:00
parent 438f07c9f7
commit 32e091260a
2 changed files with 4 additions and 0 deletions

3
NEWS
View File

@@ -7,6 +7,9 @@ PHP NEWS
inaccurate sunrise and sunset times, but other calculated times are
correct) (JiriJozif).
- Standard:
. Fixed bug GH-17403 (Potential deadlock when putenv fails). (nielsdos)
08 May 2025, PHP 8.3.21
- Core:

View File

@@ -849,6 +849,7 @@ PHP_FUNCTION(putenv)
#endif
RETURN_TRUE;
} else {
tsrm_env_unlock();
free(pe.putenv_string);
zend_string_release(pe.key);
#ifdef PHP_WIN32