(file_extract.c) Fix leak in zip extraction

This commit is contained in:
Higor Eurípedes 2015-05-19 15:38:43 -03:00
parent 15d8570e5b
commit 2f05ecbed6

View File

@ -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)
{