From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 3 May 2016 17:29:25 -0400 Subject: [U-Boot] [PATCH] dfu: avoid memory leak In-Reply-To: <1462242292-1044-1-git-send-email-van.freenix@gmail.com> References: <1462242292-1044-1-git-send-email-van.freenix@gmail.com> Message-ID: <20160503212925.GD7884@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: "?ukasz Majewski" > Cc: Marek Vasut Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: