aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2017-08-16 19:35:39 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-22 11:59:17 +1000
commitc8fd6a57254e663143558acada294b8ec6bf8b99 (patch)
treeeff3a97cb5e30eaaafa996096fd433322238fa8b /external
parentb1cfa67772bc90ed9980ab7f0b4e013c3b3eb4b2 (diff)
downloadskiboot-c8fd6a57254e663143558acada294b8ec6bf8b99.zip
skiboot-c8fd6a57254e663143558acada294b8ec6bf8b99.tar.gz
skiboot-c8fd6a57254e663143558acada294b8ec6bf8b99.tar.bz2
external/pflash: Fix resource leak CID 163745
Thanks Coverity. Fixes: CID 163745 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 6901657..ceab3f4 100644
--- a/external/pflash/pflash.c
+++ b/external/pflash/pflash.c
@@ -191,6 +191,7 @@ static void print_flash_info(struct flash_details *flash)
if (!next_ffsh)
break;
next_toc = print_ffs_info(next_ffsh, next_toc);
+ ffs_close(next_ffsh);
}
flash->toc = toc;
}