From b23bd75195462b5aa664f86d6459496ce3363741 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 4 Sep 2014 23:06:46 -0400 Subject: [PATCH] playlist: Fix a potential memory leak. --- playlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playlist.c b/playlist.c index 9dbfe89bdb..d3b400251e 100644 --- a/playlist.c +++ b/playlist.c @@ -195,6 +195,10 @@ static bool content_playlist_read_file( if (!file || !playlist) { RARCH_ERR("Couldn't read content playlist file: %s.\n", path); + + if (file) + fclose(file); + return true; }