From c379533ba9850ab29fd28a849cf5b9a07820c196 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Fri, 21 Jul 2006 17:53:36 +0000 Subject: Fix a memory leak when removing a playlist git-svn-id: https://svn.musicpd.org/mpd/trunk@4422 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/playlist.c b/src/playlist.c index f4a4991ec..37c2aeb5c 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -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 { -- cgit v1.2.3