mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-30 21:42:18 +00:00
(nbio_stdio.c) Try to free handle->data in case of an error
This commit is contained in:
parent
d3b304ebc4
commit
49c08fdba9
@ -60,7 +60,12 @@ struct nbio_t* nbio_open(const char * filename, unsigned mode)
|
||||
|
||||
error:
|
||||
if (handle)
|
||||
{
|
||||
if (handle->data)
|
||||
free(handle->data);
|
||||
handle->data = NULL;
|
||||
free(handle);
|
||||
}
|
||||
handle = NULL;
|
||||
fclose(f);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user