From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] test/overlay: Fix various malloc/free leaks
Date: Sat, 7 Oct 2017 09:09:00 -0400 [thread overview]
Message-ID: <20171007130900.GD25966@bill-the-cat> (raw)
In-Reply-To: <1506444192-3615-1-git-send-email-trini@konsulko.com>
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@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>
prev parent reply other threads:[~2017-10-07 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-26 16:43 [U-Boot] [PATCH] test/overlay: Fix various malloc/free leaks Tom Rini
2017-09-26 18:28 ` Langer, Thomas
2017-09-26 19:13 ` Tom Rini
2017-10-07 13:09 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171007130900.GD25966@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.