summaryrefslogtreecommitdiff
path: root/src/input/plugins/ArchiveInputPlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/plugins/ArchiveInputPlugin.cxx')
-rw-r--r--src/input/plugins/ArchiveInputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/plugins/ArchiveInputPlugin.cxx b/src/input/plugins/ArchiveInputPlugin.cxx
index fc1567a54..72caf7fa2 100644
--- a/src/input/plugins/ArchiveInputPlugin.cxx
+++ b/src/input/plugins/ArchiveInputPlugin.cxx
@@ -63,7 +63,7 @@ OpenArchiveInputStream(Path path, Mutex &mutex, Cond &cond)
auto file = archive_file_open(arplug, Path::FromFS(archive));
AtScopeExit(file) {
- file->Close();
+ delete file;
};
return InputStreamPtr(file->OpenStream(filename, mutex, cond));