diff options
| -rw-r--r-- | ext/zip/zip_stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c index 67179ec964..d56213d1d5 100644 --- a/ext/zip/zip_stream.c +++ b/ext/zip/zip_stream.c @@ -160,6 +160,7 @@ static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ if (za) { memset(ssb, 0, sizeof(php_stream_statbuf)); if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) { + zip_close(za); zend_string_release(file_basename); return -1; } |
