From f8a7517fb73f6837d3a9df9f83cceed6ff726190 Mon Sep 17 00:00:00 2001 From: tholin Date: Thu, 3 Jul 2014 23:22:51 +0200 Subject: stream_dvdnav: free pointer to priv->filename on close CC: @mpv-player/stable Signed-off-by: wm4 --- stream/stream_dvdnav.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index cc6c16ae9b..6b5b4ef14b 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -638,6 +638,8 @@ static void stream_dvdnav_close(stream_t *s) priv->dvdnav = NULL; if (priv->dvd_speed) dvd_set_speed(s, priv->filename, -1); + if (priv->filename) + free(priv->filename); } static struct priv *new_dvdnav_stream(stream_t *stream, char *filename) -- cgit v1.2.3