diff options
author | Furquan Shaikh <furquan@google.com> | 2016-08-05 08:32:23 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-08-08 13:02:50 +0200 |
commit | 9844d56993b2e43bd54536b3ac6a777fa01397cf (patch) | |
tree | ad4aa57b325ac54aac7b00ce917bc3ea7c8fe5aa | |
parent | 58644a0e0f9c64dcf26b7c3de7d0dd197b1f8cbc (diff) |
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>
-rw-r--r-- | util/cbfstool/cbfs_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs_image.c b/util/cbfstool/cbfs_image.c index 950f8ed0d5..50fc64cab9 100644 --- a/util/cbfstool/cbfs_image.c +++ b/util/cbfstool/cbfs_image.c @@ -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; } |