com php-src: - Fixed possible memory leak: win32/readdir.c
| From: | Felipe Pena | Date: | Sat, 12 Oct 2013 21:06:20 +0000 |
| Subject: | com php-src: - Fixed possible memory leak: win32/readdir.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73430@lists.php.net to get a copy of this message | ||
Commit: 960b4e81f316528fc554ec1bff7daf46faa7129f
Author: Felipe Pena <felipensp@gmail.com> Sat, 12 Oct 2013 18:06:20 -0300
Parents: 9fbfdb3396657caf143265d63c2a00362c14398d
Branches: PHP-5.4 PHP-5.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=960b4e81f316528fc554ec1bff7daf46faa7129f
Log:
- Fixed possible memory leak
Changed paths:
M win32/readdir.c
Diff:
diff --git a/win32/readdir.c b/win32/readdir.c
index 9525fc0..0edd576 100644
--- a/win32/readdir.c
+++ b/win32/readdir.c
@@ -45,6 +45,7 @@ DIR *opendir(const char *dir)
dp = (DIR *) malloc(sizeof(DIR));
if (dp == NULL) {
+ free(filespec);
return NULL;
}
dp->offset = 0;