From 9b1845567962586700e34e3fa445c9dd8b2de75d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 30 Jan 2019 10:39:12 +0100 Subject: [PATCH] pack: close the input file after reading the package description Signed-off-by: David Oberhollenzer --- main/cmd/pack/desc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/cmd/pack/desc.c b/main/cmd/pack/desc.c index 5a0a004..23ab820 100644 --- a/main/cmd/pack/desc.c +++ b/main/cmd/pack/desc.c @@ -95,8 +95,10 @@ int desc_read(const char *path, pkg_desc_t *desc) goto fail; } + cleanup_file(&f); return 0; fail: + cleanup_file(&f); return -1; }