diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-07-16 18:22:03 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-07-16 18:22:03 +0000 |
commit | 5d1df8e25c45ef5c54914a311d809088afdc15c7 (patch) | |
tree | deeb8a420e5746ee2aecb02e619fc85e3096fc6a /src/ls.c | |
parent | 8d630f30e89646c0a6f225089cb8325af0fbf62e (diff) | |
download | mpd-5d1df8e25c45ef5c54914a311d809088afdc15c7.tar.gz mpd-5d1df8e25c45ef5c54914a311d809088afdc15c7.tar.xz mpd-5d1df8e25c45ef5c54914a311d809088afdc15c7.zip |
Fixing a whopping 4 memory leaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@4371 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |