summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf/cvt/stabs.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-15 21:08:25 +0000
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2019-01-09 11:47:04 +0100
commit93b8872871607b3d21317283c1230b2a4a00920b (patch)
tree9ca8e35e28b51f3a98895caa4c6d05cba30fb2a3 /usr/src/tools/ctf/cvt/stabs.c
parent64f9afd1fd6b5f36ed2c633d603a3b551da6f3d4 (diff)
downloadillumos-joyent-93b8872871607b3d21317283c1230b2a4a00920b.tar.gz
10075 make usr/src/tools smatch clean
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Diffstat (limited to 'usr/src/tools/ctf/cvt/stabs.c')
-rw-r--r--usr/src/tools/ctf/cvt/stabs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/tools/ctf/cvt/stabs.c b/usr/src/tools/ctf/cvt/stabs.c
index 53b4565859..db6c8ae111 100644
--- a/usr/src/tools/ctf/cvt/stabs.c
+++ b/usr/src/tools/ctf/cvt/stabs.c
@@ -24,6 +24,10 @@
*/
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* Routines used to read stabs data from a file, and to build a tdata structure
* based on the interesting parts of that data.
*/
@@ -328,8 +332,7 @@ stabs_read(tdata_t *td, Elf *elf, const char *file)
* the N_PSYM stabs.
*/
if (scope && stab->n_type != N_PSYM) {
- if (iidescp)
- iidesc_free(iidescp);
+ iidesc_free(iidescp);
goto parse_loop_end;
}