public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Joel Sherrill <joel@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib/doc/makedoc.c: Fix memory leak identified by Coverity. Date: Fri, 18 Jun 2021 19:43:25 +0000 (GMT) [thread overview] Message-ID: <20210618194325.88D4C3982006@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=609f5a51c6e2c636996d6567fd5a4ec465a136f0 commit 609f5a51c6e2c636996d6567fd5a4ec465a136f0 Author: Joel Sherrill <joel@rtems.org> Date: Thu Jun 17 16:27:49 2021 -0500 newlib/doc/makedoc.c: Fix memory leak identified by Coverity. Diff: --- newlib/doc/makedoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newlib/doc/makedoc.c b/newlib/doc/makedoc.c index 36a14e535..966349c51 100644 --- a/newlib/doc/makedoc.c +++ b/newlib/doc/makedoc.c @@ -1278,7 +1278,8 @@ compile (char *string) } } -return(ret); + free(word); + return(ret); }
reply other threads:[~2021-06-18 19:43 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210618194325.88D4C3982006@sourceware.org \ --to=joel@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).