From e81ad553adaef83765c58bdc8d0c2045eaba535d Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 18 Jan 2019 19:03:25 -0500 Subject: [PATCH] playlist: free filestream before early returning --- playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlist.c b/playlist.c index 2bfb2fb603..52510d0765 100644 --- a/playlist.c +++ b/playlist.c @@ -834,7 +834,10 @@ static bool playlist_read_file( /* Empty playlist file */ if (bytes_read == 0) + { + filestream_close(file); return true; + } filestream_seek(file, 0, SEEK_SET);