summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-23 06:58:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-23 06:58:51 +0200
commitf2be037b77015dc9eba66620d49928ef1f0ef3aa (patch)
treef2a4a4c4e11a49b66777f8816ccdb6c7043af691
parent7845ec6063e0ca5d9eee3388300fc5156a2c0c07 (diff)
filelist.c: Fix memleak in add_file_to_filelist_recursively scandir call
-rw-r--r--src/filelist.c2
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);