mirror of
https://github.com/pygos/pkg-utils.git
synced 2024-12-22 18:00:49 +01:00
pack: close the input file after reading the package description
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
e3740ba387
commit
9b18455679
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue