summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-06-04 20:51:31 (GMT)
committerAnatoliy Belsky <ab@php.net>2012-06-07 19:01:31 (GMT)
commita39bcfc5ee3931c25bdbc5dc2409e6d9dd98ff52 (patch)
tree801b8145391d07076cd72eaee88070114f3c0630
parent9a2365412e69d452679fe2b834e8c594ae9f57ea (diff)
downloadphp-a39bcfc5ee3931c25bdbc5dc2409e6d9dd98ff52.tar.gz
fixed a double freeing crash
-rw-r--r--ext/zip/lib/zip_close.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/zip/lib/zip_close.c b/ext/zip/lib/zip_close.c
index fc1ad02..b0e3c75 100644
--- a/ext/zip/lib/zip_close.c
+++ b/ext/zip/lib/zip_close.c
@@ -337,8 +337,6 @@ zip_close(struct zip *za)
umask(mask);
chmod(za->zn, 0666&~mask);
#endif
- if (za->ch_comment)
- free(za->ch_comment);
_zip_free(za);
free(temp);