]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Fri, 12 Jan 2007 09:10:16 +0000 (09:10 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 12 Jan 2007 09:10:16 +0000 (09:10 +0000)
main/fopen_wrappers.c

index 4e87a8a110a0ac9bfe0215846749c883e01be4f7..2b201baa619a4e00ef84af2514e8fc1c0a514878 100644 (file)
@@ -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