diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-17 15:15:22 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-17 15:15:22 +1100 |
commit | 8dcabbba7ead5061bec7a878512d300180a48572 (patch) | |
tree | 524e164a426fdbf8ea143401eb81d5d9beea81b3 /external/pflash | |
parent | 2546d4ae2f96afaa7b523be65f13dfd034135f78 (diff) | |
download | talos-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.c | 1 |
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; } |