Skip to content

Commit 960b4e8

Browse files
committed
- Fixed possible memory leak
1 parent 9fbfdb3 commit 960b4e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

win32/readdir.c

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ DIR *opendir(const char *dir)
4545

4646
dp = (DIR *) malloc(sizeof(DIR));
4747
if (dp == NULL) {
48+
free(filespec);
4849
return NULL;
4950
}
5051
dp->offset = 0;

0 commit comments

Comments
 (0)