Print this page
patch tsoome-feedback

@@ -1034,11 +1034,10 @@
         *out = nf;
 
         return (0);
 
 hcfmbail:
-        if (nf != NULL)
                 nvlist_free(nf);
         for (i = 0; i < npairs; i++)
                 nvlist_free(pa[i]);
         topo_mod_free(mod, pa, npairs * sizeof (nvlist_t *));
 

@@ -1175,11 +1174,10 @@
                 return (hc_create_seterror(mod,
                     hcl, pelems, fmri, EMOD_FMRI_NVL));
 
         if (hcl != NULL) {
                 for (i = 0; i < pelems + 1; ++i) {
-                        if (hcl[i] != NULL)
                                 nvlist_free(hcl[i]);
                 }
                 topo_mod_free(mod, hcl, sizeof (nvlist_t *) * (pelems + 1));
         }