mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Fix resource leaks pointed out by Coverity
This commit is contained in:
parent
20122d21ee
commit
8619534a31
@ -237,15 +237,16 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, uns
|
||||
break;
|
||||
case RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING:
|
||||
/* TODO/FIXME - implement */
|
||||
return NULL;
|
||||
goto error;
|
||||
default:
|
||||
return NULL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
|
||||
{
|
||||
if (!mode_str)
|
||||
return NULL;
|
||||
goto error;
|
||||
|
||||
stream->fp = fopen_utf8(path, mode_str);
|
||||
|
||||
if (!stream->fp)
|
||||
|
Loading…
Reference in New Issue
Block a user