mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(file_extract.c) Fix leak in zip extraction
This commit is contained in:
parent
15d8570e5b
commit
2f05ecbed6
@ -448,7 +448,10 @@ int zlib_inflate_data_to_file(zlib_file_handle_t *handle,
|
||||
const uint8_t *cdata, uint32_t csize, uint32_t size, uint32_t checksum)
|
||||
{
|
||||
if (handle)
|
||||
{
|
||||
zlib_stream_free(handle->stream);
|
||||
free(handle->stream);
|
||||
}
|
||||
|
||||
if (!handle || ret == -1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user