mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: cbfstool/cbfs_image: Fix resource leak for tbuff
BUG=None BRANCH=None TEST=None Change-Id: I7cc86cf9fbba4f6cb4860a5dab968ff80d7765b9 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> Reviewed-on: https://chromium-review.googlesource.com/368780 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
a21132719a
commit
27d704e2d3
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue