1
0
Fork 0
mirror of https://github.com/pygos/pkg-utils.git synced 2024-06-16 01:08:43 +02: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;
}
cleanup_file(&f);
return 0;
fail:
cleanup_file(&f);
return -1;
}