diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-11 08:36:56 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-11 08:36:56 (EDT) |
commit | 11a3a0252f070e0623a9bec522198d91187140c8 (patch) | |
tree | 7309548f213d7c058a5c8fd986e7f94336fd0c17 | |
parent | 15dbbeab56f0e7e350a916f601a95b93caf768e0 (diff) |
opk/read: Fix possible FD leak
-rw-r--r-- | src/opk/read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opk/read.c b/src/opk/read.c index 0a7f3c1..e0f3af4 100644 --- a/src/opk/read.c +++ b/src/opk/read.c @@ -236,6 +236,7 @@ _opkg_opk_opk_read_control(struct opkg_opk_opk *opk) _opkg_opk_opk_read_free_inner(opk); if (opk->control_dir != NULL) { free(path); + fclose(fp); } return OPKG_OPK_ERROR; } |