mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 11:45:16 +00:00
rpng_process_init - free resources when failing
This commit is contained in:
parent
a0974a899d
commit
6c2e933321
@ -804,6 +804,12 @@ static struct rpng_process_t *rpng_process_init(rpng_t *rpng,
|
||||
return process;
|
||||
|
||||
error:
|
||||
if (process->inflate_buf)
|
||||
free(process->inflate_buf);
|
||||
if (process->stream)
|
||||
process->stream_backend->stream_free(process->stream);
|
||||
if (process)
|
||||
free(process);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user