From: Antony Dovgal Date: Fri, 12 Jan 2007 09:10:05 +0000 (+0000) Subject: plug newly added leak X-Git-Tag: RELEASE_1_0_0RC1~289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9efc4483c0f4dc9ba56777245f6eb8e32f9ce63d;p=php plug newly added leak --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 1f9fec2ccf..b638c55a19 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -312,6 +312,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