diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 21:02:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 21:02:59 +0100 |
commit | 31da4bc566432424c39aec9fe55ab656a4255f57 (patch) | |
tree | b3b3f80088f1e025fa16a485e944ae6214ccab61 | |
parent | 0f1a180e155af52e5842d416cfce0b9141e42a3d (diff) | |
download | mpd-31da4bc566432424c39aec9fe55ab656a4255f57.tar.gz mpd-31da4bc566432424c39aec9fe55ab656a4255f57.tar.xz mpd-31da4bc566432424c39aec9fe55ab656a4255f57.zip |
cue_parser: fix memory leak
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/cue/cue_parser.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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); |