cvs: php4 /ext/standard dir.c

From: Date: Sun, 29 Apr 2001 18:06:56 +0000
Subject: cvs: php4 /ext/standard dir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5367@lists.php.net to get a copy of this message
andi Sun Apr 29 11:06:56 2001 EDT Modified files: /php4/ext/standard dir.c Log: - Remove leak from opendir() under Windows. Maybe readdir.c should be changed to use emalloc() PR: Submitted by: Reviewed by: Obtained from: Index: php4/ext/standard/dir.c diff -u php4/ext/standard/dir.c:1.63 php4/ext/standard/dir.c:1.64 --- php4/ext/standard/dir.c:1.63 Sun Apr 29 10:57:23 2001 +++ php4/ext/standard/dir.c Sun Apr 29 11:06:56 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dir.c,v 1.63 2001/04/29 17:57:23 andi Exp $ */ +/* $Id: dir.c,v 1.64 2001/04/29 18:06:56 andi Exp $ */ /* {{{ includes/startup/misc */ @@ -170,6 +170,9 @@ #ifdef PHP_WIN32 if (!dirp->dir || dirp->dir->finished) { + if (dirp->dir) { + closedir(dirp->dir); + } #else if (!dirp->dir) { #endif

« previous php.cvs (#5367) next »