Close files after reading them

avoids running out of file descriptors

Signed-off-by: Chris Dearman <chris@mips.com>
Change-Id: Id46c190474a0d440325a15f1182e578ce888b1ec
1 file changed