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:
J. Alexander Treuman 2006-07-21 17:53:36 +00:00
parent 95af15ce8f
commit c379533ba9

View File

@ -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 {