[Skiboot] [PATCH 2/4] external/pflash: Fix resource leak CID 163742

Cyril Bur cyril.bur at au1.ibm.com
Wed Aug 16 19:35:38 AEST 2017


Thanks Coverity.

Fixes: CID 163742
Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 external/pflash/pflash.c | 1 +
 1 file changed, 1 insertion(+)

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;
 
-- 
2.14.1



More information about the Skiboot mailing list