diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-23 06:58:51 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-23 06:58:51 +0200 |
commit | f2be037b77015dc9eba66620d49928ef1f0ef3aa (patch) | |
tree | f2a4a4c4e11a49b66777f8816ccdb6c7043af691 | |
parent | 7845ec6063e0ca5d9eee3388300fc5156a2c0c07 (diff) |
filelist.c: Fix memleak in add_file_to_filelist_recursively scandir call
-rw-r--r-- | src/filelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelist.c b/src/filelist.c index c45d1f7..e55e80a 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -221,8 +221,8 @@ void add_file_to_filelist_recursively(char *origpath, unsigned char level) add_file_to_filelist_recursively(newfile, FILELIST_LAST); free(newfile); - free(de[cnt]); } + free(de[cnt]); } free(de); closedir(dir); |