Fix a memory leak when removing a playlist
git-svn-id: https://svn.musicpd.org/mpd/trunk@4422 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
95af15ce8f
commit
c379533ba9
@ -1349,6 +1349,8 @@ int deletePlaylist(FILE * fp, char *utf8file)
|
||||
strcat(rfile, ".");
|
||||
strcat(rfile, PLAYLIST_FILE_SUFFIX);
|
||||
|
||||
free(file);
|
||||
|
||||
if ((actualFile = rpp2app(rfile)) && isPlaylist(actualFile))
|
||||
free(rfile);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user