[U-Boot] test/overlay: Fix various malloc/free leaks
Tom Rini
trini at konsulko.com
Sat Oct 7 13:09:00 UTC 2017
On Tue, Sep 26, 2017 at 12:43:12PM -0400, Tom Rini wrote:
> 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 at konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171007/28169618/attachment.sig>
More information about the U-Boot
mailing list