Fixing a whopping 4 memory leaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@4371 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -111,7 +111,7 @@ int lsPlaylists(FILE * fp, char * utf8path) {
|
||||
char s[MAXPATHLEN+1];
|
||||
List * list = NULL;
|
||||
ListNode * node = NULL;
|
||||
char * path = strdup(utf8ToFsCharset(utf8path));
|
||||
char * path = utf8ToFsCharset(utf8path);
|
||||
char * actualPath = rpp2app(path);
|
||||
int actlen = strlen(actualPath)+1;
|
||||
int maxlen = MAXPATHLEN-actlen;
|
||||
|
||||
Reference in New Issue
Block a user