mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
fix mem_stream leak.
This commit is contained in:
parent
d2aa2277d9
commit
dcd9b72bf9
@ -890,8 +890,8 @@ int32_t mz_zip_writer_close(void *handle)
|
||||
|
||||
if (writer->mem_stream != NULL)
|
||||
{
|
||||
mz_stream_mem_close(writer->file_stream);
|
||||
mz_stream_mem_delete(&writer->file_stream);
|
||||
mz_stream_mem_close(writer->mem_stream);
|
||||
mz_stream_mem_delete(&writer->mem_stream);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user