Skip to content

Commit

Permalink
- Fixed possible memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Oct 12, 2013
1 parent 9fbfdb3 commit 960b4e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions win32/readdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ DIR *opendir(const char *dir)

dp = (DIR *) malloc(sizeof(DIR));
if (dp == NULL) {
free(filespec);
return NULL;
}
dp->offset = 0;
Expand Down

0 comments on commit 960b4e8

Please sign in to comment.