1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 17:43:13 +02:00

- Remove leak from opendir() under Windows. Maybe readdir.c should be

changed to use emalloc()
PR:
Submitted by:
Reviewed by:
Obtained from:
This commit is contained in:
Andi Gutmans
2001-04-29 18:06:56 +00:00
parent cabf7b8932
commit 91451bfcaf

View File

@@ -170,6 +170,9 @@ static void _php_do_opendir(INTERNAL_FUNCTION_PARAMETERS, int createobject)
#ifdef PHP_WIN32
if (!dirp->dir || dirp->dir->finished) {
if (dirp->dir) {
closedir(dirp->dir);
}
#else
if (!dirp->dir) {
#endif