mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-01 09:12:35 +00:00
(nbio) nbio_free - add early return in case handle is NULL
This commit is contained in:
parent
215c434e81
commit
395aa9b15f
@ -138,6 +138,8 @@ void* nbio_get_ptr(struct nbio_t* handle, size_t* len)
|
||||
|
||||
void nbio_free(struct nbio_t* handle)
|
||||
{
|
||||
if (!handle)
|
||||
return;
|
||||
fclose(handle->f);
|
||||
free(handle->data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user