From dcd9b72bf977ab756c314cefd67568342d65bbf5 Mon Sep 17 00:00:00 2001 From: shintaro-t Date: Wed, 22 Aug 2018 10:55:31 +0900 Subject: [PATCH] fix mem_stream leak. --- mz_zip_rw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mz_zip_rw.c b/mz_zip_rw.c index 781270d..92dcde2 100644 --- a/mz_zip_rw.c +++ b/mz_zip_rw.c @@ -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;