Print this page
6659 nvlist_free(NULL) is a no-op

@@ -2413,11 +2413,10 @@
         if (pool_knl_nvlist_add_value(pke->pke_properties, name, val) !=
             PO_SUCCESS)
                 return (PO_FAIL);
 
         if (prov->pkc_log->l_state != LS_DO) {
-                if (bl)
                         nvlist_free(bl);
                 return (PO_SUCCESS);
         }
         /*
          * The remaining logic is setting up the arguments for the

@@ -3458,11 +3457,10 @@
                 free(xtransfer);
                 break;
         case POOL_PROPPUT:
                 propput = (pool_propput_undo_t *)li->li_details;
 
-                if (propput->ppu_blist)
                         nvlist_free(propput->ppu_blist);
                 free(propput->ppu_ioctl.pp_o_buf);
                 free(propput);
                 break;
         case POOL_PROPRM: