Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Ark
Commits
f1b5f10c
Commit
f1b5f10c
authored
Aug 14, 2020
by
Alexey Ivanov
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libzipplugin.cpp: add missing zip_fclose to prevent memory leaks in extractEntry function
parent
071f1a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
plugins/libzipplugin/libzipplugin.cpp
plugins/libzipplugin/libzipplugin.cpp
+4
-1
No files found.
plugins/libzipplugin/libzipplugin.cpp
View file @
f1b5f10c
...
...
@@ -754,7 +754,10 @@ bool LibzipPlugin::extractEntry(zip_t *archive, const QString &entry, const QStr
default:
// TODO: non-UNIX.
break
;
}
// Free libzip file entry from the memory
zip_fclose
(
zipFile
);
// Close extracted file, flush any buffered data
file
.
close
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment