Commit f1b5f10c authored by Alexey Ivanov's avatar Alexey Ivanov 🐢

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

parent 071f1a26
...@@ -754,7 +754,10 @@ bool LibzipPlugin::extractEntry(zip_t *archive, const QString &entry, const QStr ...@@ -754,7 +754,10 @@ bool LibzipPlugin::extractEntry(zip_t *archive, const QString &entry, const QStr
default: // TODO: non-UNIX. default: // TODO: non-UNIX.
break; break;
} }
// Free libzip file entry from the memory
zip_fclose(zipFile);
// Close extracted file, flush any buffered data
file.close(); file.close();
} }
......
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