Commit c379533b authored by J. Alexander Treuman's avatar J. Alexander Treuman

Fix a memory leak when removing a playlist

git-svn-id: https://svn.musicpd.org/mpd/trunk@4422 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 95af15ce
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment