summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-09-26 19:43:12 +0300
committerTom Rini <trini@konsulko.com>2017-10-06 18:28:20 +0300
commitd91062c41e1542ffb2f8590cce75fb5a2b397fdc (patch)
tree380174d01bce580150ab163ca1b73fd32eb87443 /include
parent18030d04d25d7c08d3deff85881772a520d84d49 (diff)
downloadu-boot-d91062c41e1542ffb2f8590cce75fb5a2b397fdc.tar.xz
test/overlay: Fix various malloc/free leaks
With the overlay tests now being built in sandbox Coverity has found a number of issues in the tests. In short, if malloc ever failed we would leak the previous mallocs, so we need to do the usual goto pattern to free each in turn. Finally, we always looked at the free()d location to see how many tests had failed for the return code. Reported-by: Coverity (CID: 167224, 167227, 167230, 167236) Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions