From: Antony Dovgal Date: Fri, 12 Jan 2007 09:10:16 +0000 (+0000) Subject: MFH X-Git-Tag: php-5.2.1RC3~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5941c1d28cd5f89e3635693c11f704ffb00528f4;p=php MFH --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 4e87a8a110..2b201baa61 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