Skip to content

Commit 37afae0

Browse files
committed
Fix phpGH-17403: Potential deadlock when putenv fails
1 parent c905d59 commit 37afae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/basic_functions.c

+1
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ PHP_FUNCTION(putenv)
849849
#endif
850850
RETURN_TRUE;
851851
} else {
852+
tsrm_env_unlock();
852853
free(pe.putenv_string);
853854
zend_string_release(pe.key);
854855
#ifdef PHP_WIN32

0 commit comments

Comments
 (0)