Will the leaks never end?!
git-svn-id: https://svn.musicpd.org/mpd/trunk@4375 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
25c37e9276
commit
39615044e3
7
src/ls.c
7
src/ls.c
@ -181,10 +181,15 @@ int lsPlaylists(FILE * fp, char * utf8path) {
|
|||||||
int myStat(char * utf8file, struct stat * st) {
|
int myStat(char * utf8file, struct stat * st) {
|
||||||
char * file = utf8ToFsCharset(utf8file);
|
char * file = utf8ToFsCharset(utf8file);
|
||||||
char * actualFile = file;
|
char * actualFile = file;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if(actualFile[0]!='/') actualFile = rmp2amp(file);
|
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) {
|
static int isFile(char * utf8file, time_t * mtime) {
|
||||||
|
Loading…
Reference in New Issue
Block a user