aboutsummaryrefslogtreecommitdiffstats
path: root/src/cue
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 /src/cue
parent0f1a180e155af52e5842d416cfce0b9141e42a3d (diff)
downloadmpd-31da4bc566432424c39aec9fe55ab656a4255f57.tar.gz
mpd-31da4bc566432424c39aec9fe55ab656a4255f57.tar.xz
mpd-31da4bc566432424c39aec9fe55ab656a4255f57.zip
cue_parser: fix memory leak
Diffstat (limited to 'src/cue')
-rw-r--r--src/cue/cue_parser.c3
1 files changed, 3 insertions, 0 deletions
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);