svn commit: r359176 - head/contrib/elftoolchain/libelftc
Mark Johnston
markj at FreeBSD.org
Fri Mar 20 16:25:13 UTC 2020
Author: markj
Date: Fri Mar 20 16:25:06 2020
New Revision: 359176
URL: https://svnweb.freebsd.org/changeset/base/359176
Log:
libelftc: Fix a memory leak in cpp_demangle_read_type().
CID: 1305425
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c
Modified: head/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c
==============================================================================
--- head/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c Fri Mar 20 16:24:53 2020 (r359175)
+++ head/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c Fri Mar 20 16:25:06 2020 (r359176)
@@ -2912,7 +2912,7 @@ again:
if (len <= 0)
goto clean;
if (!vector_str_push(&v.ext_name, ddata->cur, len))
- return (0);
+ goto clean;
ddata->cur += len;
if (!vector_type_qualifier_push(&v, TYPE_EXT))
goto clean;
More information about the svn-src-head
mailing list