diff mbox

[3/4] external/pflash: Fix resource leak CID 163745

Message ID 20170816093540.27595-3-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 163745
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 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;
 }