[Skiboot] [PATCH 6/8] pflash: Fix file descriptor leak
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 17 15:39:05 AEDT 2015
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
external/pflash/pflash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 057506eba6eb..823170884f8e 100644
--- a/external/pflash/pflash.c
+++ b/external/pflash/pflash.c
@@ -317,6 +317,7 @@ static void program_file(const char *file, uint32_t start, uint32_t size)
if (dummy_run) {
printf("skipped (dummy)\n");
+ close(fd);
return;
}
--
2.1.4
More information about the Skiboot
mailing list