diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 4e87a8a110a..2b201baa619 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -304,6 +304,9 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC) SG(request_info).path_translated = filename; } } +#if defined(ZTS) && defined(HAVE_GETPWNAM_R) && defined(_SC_GETPW_R_SIZE_MAX) + efree(pwbuf); +#endif } } else #endif