Home
last modified time | relevance | path

Searched hist:c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/pci/
H A Dpci-uclass.cc42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc Mon May 08 18:40:16 UTC 2017 xypron.glpk@gmx.de <xypron.glpk@gmx.de> pci: avoid memory leak

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@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>