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

Bin Meng bmeng.cn at gmail.com
Tue May 9 02:24:05 UTC 2017


On Tue, May 9, 2017 at 2:40 AM, Heinrich Schuchardt <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>
> ---
>  drivers/pci/pci-uclass.c | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list