aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-07-21 17:53:36 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-07-21 17:53:36 +0000
commitc379533ba9850ab29fd28a849cf5b9a07820c196 (patch)
tree0ee2fc78d1e5299ba9e1436d0140157ac7e03c54 /src
parent95af15ce8f7a9408bce9b27a29b4221113ee9dd4 (diff)
downloadmpd-c379533ba9850ab29fd28a849cf5b9a07820c196.tar.gz
mpd-c379533ba9850ab29fd28a849cf5b9a07820c196.tar.xz
mpd-c379533ba9850ab29fd28a849cf5b9a07820c196.zip
Fix a memory leak when removing a playlist
git-svn-id: https://svn.musicpd.org/mpd/trunk@4422 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.c2
1 files changed, 2 insertions, 0 deletions
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 {