mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +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:
|
error:
|
||||||
if (handle)
|
if (handle)
|
||||||
|
{
|
||||||
|
if (handle->data)
|
||||||
|
free(handle->data);
|
||||||
|
handle->data = NULL;
|
||||||
free(handle);
|
free(handle);
|
||||||
|
}
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user