[U-Boot] pci: avoid memory leak
Tom Rini
trini at konsulko.com
Fri May 12 17:21:23 UTC 2017
On Mon, May 08, 2017 at 08:40:16PM +0200, xypron.glpk at gmx.de wrote:
> strdup uses malloc to allocate memory for str.
> If we cannot bind to the generic driver we should release
> the memory.
>
> The problem was indicated by clang scan-build.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
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: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/c306eb0b/attachment.sig>
More information about the U-Boot
mailing list