util/cbfstool: Close file on error
commit2e31ea05bb2c88913310d20a9baaa83e8934da52
authorJacob Garber <jgarber1@ualberta.ca>
Tue, 2 Jul 2019 23:50:59 +0000 (2 17:50 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 10 Jul 2019 18:21:00 +0000 (10 18:21 +0000)
treea4508d45c1b72ca2faf709467b91976df70bc2d4
parent509f46953ece919b1610b685599e146461ae4163
util/cbfstool: Close file on error

Prevents a resource leak.

Change-Id: I032227228c8e37e989960ad6292ded39b81835a9
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1383919
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33992
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
util/cbfstool/partitioned_file.c