Merge pull request #941 from lioncash/leak

playlist: Fix a potential memory leak.
This commit is contained in:
Twinaphex 2014-09-05 05:11:03 +02:00
commit a8ef5ff80e

View File

@ -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;
}