diff options
| author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-08-16 19:35:38 +1000 |
|---|---|---|
| committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-22 11:59:17 +1000 |
| commit | b1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2 (patch) | |
| tree | db3ed670968d7e6aba272c8e0cfb419e9fb66e7d /external/pflash | |
| parent | c98d7a1f8197b8d45ec8b99c4deb213c0c455c0f (diff) | |
| download | talos-skiboot-b1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2.tar.gz talos-skiboot-b1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2.zip | |
external/pflash: Fix resource leak CID 163742
Thanks Coverity.
Fixes: CID 163742
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
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 ed33a6fd..69016578 100644 --- a/external/pflash/pflash.c +++ b/external/pflash/pflash.c @@ -182,6 +182,7 @@ static void print_flash_info(struct flash_details *flash) return; next_toc = print_ffs_info(ffsh, toc); + ffs_close(ffsh); while(next_toc != toc) { struct ffs_handle *next_ffsh; |

