aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/tools
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-03-26 23:20:37 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-03-26 23:20:37 +0000
commit52f72944b8f5abb2386eae924357dee8aea17d5b (patch)
tree98439d88ae7b44eddff46a5a99325666fd1117c4 /cddl/contrib/opensolaris/tools
parent289b9798be1bf488e4f0a17184a300862e078867 (diff)
downloadsrc-52f72944b8f5abb2386eae924357dee8aea17d5b.tar.gz
src-52f72944b8f5abb2386eae924357dee8aea17d5b.zip
ctfconvert/ctfmerge: Fix a memory leak enumerating DWARF files
Reported by: Coverity Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=331600
Diffstat (limited to 'cddl/contrib/opensolaris/tools')
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
index c9da2a2c0b5d..8c958693e08e 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
@@ -1613,6 +1613,7 @@ die_function_create(dwarf_t *dw, Dwarf_Die die, Dwarf_Off off, tdesc_t *tdp __un
ii->ii_vargs = 1;
continue;
}
+ free(name1);
ii->ii_nargs++;
}