aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index f913ff2d3..8ff396835 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -155,12 +155,10 @@ int lsPlaylists(FILE * fp, char * utf8path) {
if(stat(s,&st)==0) {
if(S_ISREG(st.st_mode)) {
if(list==NULL) list = makeList(NULL, 1);
- dup = strdup(ent->d_name);
dup[suff] = '\0';
if((utf8 = fsCharsetToUtf8(dup))) {
insertInList(list,utf8,NULL);
}
- free(dup);
}
}
}