aboutsummaryrefslogtreecommitdiff
path: root/external
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
parent2546d4ae2f96afaa7b523be65f13dfd034135f78 (diff)
downloadskiboot-8dcabbba7ead5061bec7a878512d300180a48572.zip
skiboot-8dcabbba7ead5061bec7a878512d300180a48572.tar.gz
skiboot-8dcabbba7ead5061bec7a878512d300180a48572.tar.bz2
pflash: Fix file descriptor leak
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-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 057506e..8231708 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;
}