From 9844d56993b2e43bd54536b3ac6a777fa01397cf Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 5 Aug 2016 08:32:23 -0700 Subject: cbfstool/cbfs_image: Fix resource leak for tbuff Change-Id: I1f4626e1bda92af38e7967d7e05a4c7143942cf6 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/16074 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- util/cbfstool/cbfs_image.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util') 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; } -- cgit v1.2.3