diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-05-08 20:40:16 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 08:37:18 -0400 |
commit | c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc (patch) | |
tree | ec951c7937cd3094c91dc482113470e2aeabf390 /lib | |
parent | 902f5bcfbcbc8dce964a69e4c9fcf658dfb62998 (diff) | |
download | u-boot-c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc.zip u-boot-c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc.tar.gz u-boot-c42640c74813f5c9aa9d0d3bdad5ebd565bdfcdc.tar.bz2 |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions