Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

@@ -23,11 +23,11 @@
  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
- * Copyright (c) 2011, Joyent, Inc. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
  */
 
 /*
  * svcprop - report service configuration properties
  */

@@ -628,12 +628,10 @@
 
                         uu_xdie(UU_EXIT_USAGE, gettext("-p argument `%s/%s' "
                             "has too many components for property "
                             "group `%s'.\n"), spn->spn_comp1, spn->spn_comp2,
                             buf);
-
-                        free(buf);
                 }
 
                 if (scf_pg_get_property(pg, spn->spn_comp1, prop) == 0) {
                         if (!quiet)
                                 display_prop(pg, prop);