mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix GH-17403: Potential deadlock when putenv fails
Closes GH-18368.
This commit is contained in:
parent
438f07c9f7
commit
32e091260a
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue