Add a safety check in DetectZipFileContents

This commit is contained in:
Henrik Rydgård committed 2026-02-10 15:50:39 +01:00
1 parent b43a86a9f3
commit e2b99fc921
3 files changed
+9

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ ZipFileLoader::ZipFileLoader(FileLoader *sourceLoader)
if (!zipArchive_) {
ERROR_LOG(Log::IO, "Failed to open ZIP archive: %s", zip_error_strerror(&error));
zip_source_free(zipSource);
// zipArchive_ is already nullptr here.
}
}