mirror of
https://github.com/libretro/RetroArch
synced 2025-03-16 07:21:03 +00:00
Merge pull request #941 from lioncash/leak
playlist: Fix a potential memory leak.
This commit is contained in:
commit
a8ef5ff80e
@ -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…
x
Reference in New Issue
Block a user