aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index fcc4b7d0f..b93dbf13e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -181,10 +181,15 @@ int lsPlaylists(FILE * fp, char * utf8path) {
int myStat(char * utf8file, struct stat * st) {
char * file = utf8ToFsCharset(utf8file);
char * actualFile = file;
+ int ret;
if(actualFile[0]!='/') actualFile = rmp2amp(file);
- return stat(actualFile,st);
+ ret = stat(actualFile,st);
+
+ free(file);
+
+ return ret;
}
static int isFile(char * utf8file, time_t * mtime) {