Free image buffer on read error
Free the buffer after a read error to prevent a memory leak. This was flagged by a Coverity scan of the coreboot project, which uses cbootimage. Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
9de64c77f0
commit
65a6d94dd5