aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/zip/MiniZip
diff options
context:
space:
mode:
authorGravatar Yuk Lai Suen <yuklai@hothouselabs.com>2013-09-09 09:52:59 -0700
committerGravatar Yuk Lai Suen <yuklai@hothouselabs.com>2013-09-09 09:52:59 -0700
commit852b6c94a1df083c420a513847118ff2b1ca28a6 (patch)
treee38abf09434c8505d512e8e2f2cba7d951f020e3 /src/core/zip/MiniZip
parent064a7bca0535cfdff2fef5987c0b22e4c6d8b765 (diff)
Remove a few potential memory leaks
Diffstat (limited to 'src/core/zip/MiniZip')
-rw-r--r--src/core/zip/MiniZip/zip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/zip/MiniZip/zip.c b/src/core/zip/MiniZip/zip.c
index 76ac9cf1..5d78d0d5 100644
--- a/src/core/zip/MiniZip/zip.c
+++ b/src/core/zip/MiniZip/zip.c
@@ -604,6 +604,7 @@ extern zipFile ZEXPORT zipOpen2 (pathname, append, globalcomment, pzlib_filefunc
if (err!=ZIP_OK)
{
ZCLOSE(ziinit.z_filefunc, ziinit.filestream);
+ TRYFREE(zi);
return NULL;
}