[Skiboot] [PATCH 3/4] external/pflash: Fix resource leak CID 163745
Cyril Bur
cyril.bur at au1.ibm.com
Wed Aug 16 19:35:39 AEST 2017
Thanks Coverity.
Fixes: CID 163745
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 69016578..ceab3f44 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;
}
--
2.14.1
More information about the Skiboot
mailing list