summaryrefslogtreecommitdiffstats
path: root/external/pflash
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-17 15:15:22 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-17 15:15:22 +1100
commit8dcabbba7ead5061bec7a878512d300180a48572 (patch)
tree524e164a426fdbf8ea143401eb81d5d9beea81b3 /external/pflash
parent2546d4ae2f96afaa7b523be65f13dfd034135f78 (diff)
downloadtalos-skiboot-8dcabbba7ead5061bec7a878512d300180a48572.tar.gz
talos-skiboot-8dcabbba7ead5061bec7a878512d300180a48572.zip
pflash: Fix file descriptor leak
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/pflash')
-rw-r--r--external/pflash/pflash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 057506eb..82317088 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;
}
OpenPOWER on IntegriCloud