diff mbox

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

Message ID 20170816093540.27595-2-cyril.bur@au1.ibm.com
State Accepted
Headers show

Commit Message

Cyril Bur Aug. 16, 2017, 9:35 a.m. UTC
Thanks Coverity.

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

Patch

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;