From 31da4bc566432424c39aec9fe55ab656a4255f57 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 3 Jan 2013 21:02:59 +0100 Subject: [PATCH] cue_parser: fix memory leak --- NEWS | 2 ++ src/cue/cue_parser.c | 3 +++ 2 files changed, 5 insertions(+) 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);