[U-Boot] [PATCH] dfu: avoid memory leak

Tom Rini trini at konsulko.com
Tue May 3 23:29:25 CEST 2016


On Tue, May 03, 2016 at 10:24:52AM +0800, Peng Fan wrote:

> When dfu_fill_entity fail, need to free dfu to avoid memory leak.
> 
> Reported by Coverity:
> "
> Resource leak (RESOURCE_LEAK)
> leaked_storage: Variable dfu going out of scope leaks the storage
> it points to.
> "
> 
> Signed-off-by: Peng Fan <van.freenix at gmail.com>
> Cc: "Łukasz Majewski" <l.majewski at samsung.com>
> Cc: Marek Vasut <marex at denx.de>

Reviewed-by: Tom Rini <trini at konsulko.com>

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


More information about the U-Boot mailing list