util/cbfstool/flashmap: Fix memory leaks on failure
commit3a82e9b8a32b80edc5f21bb7f4dae4dcb1d047b2
authorJacob Garber <jgarber1@ualberta.ca>
Thu, 18 Jul 2019 21:57:45 +0000 (18 15:57 -0600)
committerMartin Roth <martinroth@google.com>
Sun, 21 Jul 2019 18:54:43 +0000 (21 18:54 +0000)
tree14a2b12cdb21ee7893c6d00b07879bf54df68a1d
parentb3042ed234ee38aed217b652e868f5dc0711c194
util/cbfstool/flashmap: Fix memory leaks on failure

Fix several memory leaks on failed printing or tests. These don't matter
much, but it keeps Coverity happy.

Change-Id: Ie750acb50ae1590c3aea533338a8827c03459c1a
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 130245{1,2,3}
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34412
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
util/cbfstool/flashmap/fmap.c