mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
rpng_process_init - free resources when failing
This commit is contained in:
parent
a0974a899d
commit
6c2e933321
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue