aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 00:28:07 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 00:28:07 +0000
commitfd645486a148164709e3b9b1c3b5ab390a6634c3 (patch)
tree788e698047e345c60f6fb0fb01ad90e2d11bbf9f /src
parentfc094c08d3a45371eaa4718a27433afae0203c5a (diff)
downloadmpd-fd645486a148164709e3b9b1c3b5ab390a6634c3.tar.gz
mpd-fd645486a148164709e3b9b1c3b5ab390a6634c3.tar.xz
mpd-fd645486a148164709e3b9b1c3b5ab390a6634c3.zip
Don't call freeStoredPlaylist(sp) inside an if (!sp) block. It causes
segfaults. git-svn-id: https://svn.musicpd.org/mpd/trunk@6264 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/storedPlaylist.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c
index 15705d278..4187b5526 100644
--- a/src/storedPlaylist.c
+++ b/src/storedPlaylist.c
@@ -303,7 +303,6 @@ int moveSongInStoredPlaylistByPath(int fd, const char *utf8path, int src, int de
StoredPlaylist *sp = loadStoredPlaylist(utf8path, fd);
if (!sp) {
commandError(fd, ACK_ERROR_UNKNOWN, "could not open playlist");
- freeStoredPlaylist(sp);
return -1;
}
@@ -369,7 +368,6 @@ int removeOneSongFromStoredPlaylistByPath(int fd, const char *utf8path, int pos)
StoredPlaylist *sp = loadStoredPlaylist(utf8path, fd);
if (!sp) {
commandError(fd, ACK_ERROR_UNKNOWN, "could not open playlist");
- freeStoredPlaylist(sp);
return -1;
}