aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2017-08-16 19:35:38 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-22 11:59:17 +1000
commitb1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2 (patch)
treedb3ed670968d7e6aba272c8e0cfb419e9fb66e7d /external
parentc98d7a1f8197b8d45ec8b99c4deb213c0c455c0f (diff)
downloadskiboot-b1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2.zip
skiboot-b1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2.tar.gz
skiboot-b1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2.tar.bz2
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')
-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 ed33a6f..6901657 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;