Print this page
10075 make usr/src/tools smatch clean

@@ -22,10 +22,14 @@
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
+ * 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.
  */
 
 #include <stdio.h>

@@ -326,11 +330,10 @@
                 /*
                  * The only things we care about that are in local scope are
                  * the N_PSYM stabs.
                  */
                 if (scope && stab->n_type != N_PSYM) {
-                        if (iidescp)
                                 iidesc_free(iidescp);
                         goto parse_loop_end;
                 }
 
                 switch (iidescp->ii_type) {