aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 21:02:59 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 21:02:59 +0100
commit31da4bc566432424c39aec9fe55ab656a4255f57 (patch)
treeb3b3f80088f1e025fa16a485e944ae6214ccab61
parent0f1a180e155af52e5842d416cfce0b9141e42a3d (diff)
downloadmpd-31da4bc566432424c39aec9fe55ab656a4255f57.tar.gz
mpd-31da4bc566432424c39aec9fe55ab656a4255f57.tar.xz
mpd-31da4bc566432424c39aec9fe55ab656a4255f57.zip
cue_parser: fix memory leak
-rw-r--r--NEWS2
-rw-r--r--src/cue/cue_parser.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fb910e524..ece0b896b 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ ver 0.17.3 (2012/??/??)
* decoder:
- ffmpeg: ignore negative time stamps
- ffmpeg: support planar audio
+* playlist:
+ - cue: fix memory leak
ver 0.17.2 (2012/09/30)
* protocol:
diff --git a/src/cue/cue_parser.c b/src/cue/cue_parser.c
index 2b0733f00..898c7b829 100644
--- a/src/cue/cue_parser.c
+++ b/src/cue/cue_parser.c
@@ -85,6 +85,9 @@ cue_parser_free(struct cue_parser *parser)
if (parser->current != NULL)
song_free(parser->current);
+ if (parser->previous != NULL)
+ song_free(parser->previous);
+
if (parser->finished != NULL)
song_free(parser->finished);