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:
parent
58644a0e0f
commit
9844d56993
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue