aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/archive_input_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/archive_input_plugin.c')
-rw-r--r--src/input/archive_input_plugin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/input/archive_input_plugin.c b/src/input/archive_input_plugin.c
index 248b8626e..0409057bb 100644
--- a/src/input/archive_input_plugin.c
+++ b/src/input/archive_input_plugin.c
@@ -67,12 +67,9 @@ input_archive_open(struct input_stream *is, const char *pathname,
//setup fileops
opened = archive_file_open_stream(file, is, filename, error_r);
+ archive_file_close(file);
g_free(pname);
- if (!opened) {
- archive_file_close(file);
- }
-
return opened;
}