public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib/doc/makedoc.c: Fix memory leak identified by Coverity.
@ 2021-06-18 19:43 Joel Sherrill
0 siblings, 0 replies; only message in thread
From: Joel Sherrill @ 2021-06-18 19:43 UTC (permalink / raw)
To: newlib-cvs
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-18 19:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 19:43 [newlib-cygwin] newlib/doc/makedoc.c: Fix memory leak identified by Coverity Joel Sherrill
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).