cbfstool/cbfs_image: Fix resource leak for tbuff

Change-Id: I1f4626e1bda92af38e7967d7e05a4c7143942cf6
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/16074
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Furquan Shaikh 2016-08-05 08:32:23 -07:00 committed by Patrick Georgi
parent 58644a0e0f
commit 9844d56993
1 changed files with 1 additions and 0 deletions

View File

@ -889,6 +889,7 @@ static int cbfs_payload_decompress(struct cbfs_payload_segment *segments,
&decomp_size)) {
ERROR("Couldn't decompress payload segment %u\n", i);
buffer_delete(&new_buffer);
buffer_delete(&tbuff);
return -1;
}