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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user