diff options
Diffstat (limited to 'common/unzip.cpp')
-rw-r--r-- | common/unzip.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/unzip.cpp b/common/unzip.cpp index 9f90c9d417..a83f70d671 100644 --- a/common/unzip.cpp +++ b/common/unzip.cpp @@ -1458,6 +1458,8 @@ Archive *makeZipArchive(SeekableReadStream *stream) { return 0; unzFile zipFile = unzOpen(stream); if (!zipFile) { + // stream gets deleted by unzOpen() call if something + // goes wrong. return 0; } return new ZipArchive(zipFile); |