[U-Boot] [U-Boot, v2, 7/8] spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

Tom Rini trini at konsulko.com
Tue Jun 19 18:42:43 UTC 2018


On Tue, Jun 12, 2018 at 12:05:01AM -0600, Simon Glass wrote:

> Move the strdup() call so that it is only done when we know we will bind
> the device.
> 
> Reported-by: Coverity (CID: 131216)
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

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


More information about the U-Boot mailing list