From 11a3a0252f070e0623a9bec522198d91187140c8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 11 May 2023 08:36:56 -0400 Subject: opk/read: Fix possible FD leak --- (limited to 'src/opk') 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; } -- cgit v0.9.1