Commit aa4a790d authored by Alexey Ivanov's avatar Alexey Ivanov 🐢
Browse files

libzipplugin.cpp: add missing zip_fclose to prevent memory leaks in testArchive function

parent f1b5f10c
......@@ -490,6 +490,9 @@ bool LibzipPlugin::testArchive()
qCCritical(ARK) << "CRC check failed for" << statBuffer.name;
return false;
}
// Free libzip file entry from the memory
zip_fclose(zipFile);
emit progress(float(i) / nofEntries);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment