[U-Boot] ext4_common.c: Clean up failure cases in alloc_triple_indirect_block

Tom Rini trini at konsulko.com
Thu Jan 14 14:21:10 CET 2016


On Thu, Dec 10, 2015 at 04:42:21PM -0500, Tom Rini wrote:

> As noted by Coverity, when we have an error in
> alloc_triple_indirect_block we will leak ti_pbuff_start_addr as it's not
> being freed.  Further inspection here shows that we could also leak
> ti_cbuff_start_addr in one corner case so free that as well.
> 
> Reported-by: Coverity (CID 131205, 131206)
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160114/33c72fc4/attachment.sig>


More information about the U-Boot mailing list