mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
playlist: Fix a potential memory leak.
This commit is contained in:
parent
252e04c33b
commit
b23bd75195
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user