1
0
Fork 0
mirror of https://github.com/pygos/pkg-utils.git synced 2024-11-22 12:59:46 +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:
David Oberhollenzer 2019-01-30 10:39:12 +01:00
parent e3740ba387
commit 9b18455679

View file

@ -95,8 +95,10 @@ int desc_read(const char *path, pkg_desc_t *desc)
goto fail; goto fail;
} }
cleanup_file(&f);
return 0; return 0;
fail: fail:
cleanup_file(&f);
return -1; return -1;
} }