pack: close the input file after reading the package description

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-01-30 10:39:12 +01:00
parent e3740ba387
commit 9b18455679
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}