u-boot-2016/tools
Simon Glass dd0ee9ea85 fdtgrep: Separate out checking of two allocations
The current code might succeed on the first allocation and fail on the
second. Separate the checks to avoid this problem.

Of course, free() will never fail and the chances that (when allocating
two small areas) one will succeed and one will fail are just as remote.
But this keeps coverity happy.

Reported-by: Coverity (CID: 131226)

Signed-off-by: Simon Glass <sjg@chromium.org>
2018-06-19 07:31:44 -04:00
..
binman binman: Mark 'align-end' as implemented 2018-06-07 11:25:08 -08:00
buildman buildman: Add support for environment delta in summary 2018-06-07 11:25:07 -08:00
dtoc
easylogo
env u-boot: Fix several typos 2018-06-13 07:49:13 -04:00
gdb
kermit
libfdt
logos
omap
patman
scripts
.gitignore
aisimage.c
aisimage.h
atmel_pmecc_params.c
atmelimage.c
bmp_logo.c
default_image.c
dumpimage.c
dumpimage.h
envcrc.c
fdt_host.h
fdtgrep.c fdtgrep: Separate out checking of two allocations 2018-06-19 07:31:44 -04:00
file2include.c
fit_check_sign.c
fit_common.c
fit_common.h
fit_image.c
fit_info.c
gen_eth_addr.c
gen_ethaddr_crc.c
genboardscfg.py
getline.c
getline.h
gpheader.h
gpimage-common.c
gpimage.c
ifdtool.c
ifdtool.h
image-host.c
imagetool.c
imagetool.h
img2brec.sh
img2srec.c
imximage.c
jtagconsole
kwbimage.c
kwbimage.h
kwboot.c
lpc32xximage.c
Makefile
microcode-tool
microcode-tool.py
mingw_support.c
mingw_support.h
mips-relocs.c
mkenvimage.c
mkexynosspl.c
mkimage.c
mkimage.h
mksunxiboot.c
moveconfig.py
mrvl_uart.sh
mxsboot.c
mxsimage.c
mxsimage.h
ncb.c
netconsole
omapimage.c
omapimage.h
os_support.c
os_support.h
pbl_crc32.c
pbl_crc32.h
pblimage.c
pblimage.h
prelink-riscv.c
prelink-riscv.inc
proftool.c
relocate-rela.c
rkcommon.c
rkcommon.h
rkimage.c
rkmux.py
rksd.c
rkspi.c
socfpgaimage.c
stm32image.c
sunxi-spl-image-builder.c
ublimage.c
ublimage.h
ubsha1.c
vybridimage.c
xway-swap-bytes.c
zynqimage.c
zynqmpbif.c
zynqmpimage.c
zynqmpimage.h