Skip to content

Commit

Permalink
Merge pull request adrianlopezroche#104 from PoHsun-Su/master
Browse files Browse the repository at this point in the history
Fix potential memory leak.
  • Loading branch information
adrianlopezroche authored Jul 4, 2020
2 parents 721a55c + d27f45f commit 3528f40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fdupes.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ int grokdir(char *dir, file_t **filelistp, struct stat *logfile_status)
if (name[0] == '.' && strcmp(name, ".") && strcmp(name, "..") ) {
free(newfile->d_name);
free(newfile);
free(fullname);
continue;
}
free(fullname);
Expand Down

0 comments on commit 3528f40

Please sign in to comment.