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

index 1f9fec2ccf07e6a0a739271995119e675d4a2058..b638c55a19a9606f39e69bef171a25c4fe9c0aea 100644 (file)
@@ -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