Print this page
6659 nvlist_free(NULL) is a no-op
*** 432,445 ****
rc = (sysevent_evc_publish(evc, class, subclass, ruleset, "",
pub, EVCH_NOSLEEP) == 0) ? FMEV_SUCCESS : FMEVERR_TRANSPORT;
done:
/* Free a passed in nvlist iff success */
! if (nvl && rc == FMEV_SUCCESS)
nvlist_free(nvl);
- if (tmpnvl)
nvlist_free(tmpnvl);
return (rc);
}
--- 432,444 ----
rc = (sysevent_evc_publish(evc, class, subclass, ruleset, "",
pub, EVCH_NOSLEEP) == 0) ? FMEV_SUCCESS : FMEVERR_TRANSPORT;
done:
/* Free a passed in nvlist iff success */
! if (rc == FMEV_SUCCESS)
nvlist_free(nvl);
nvlist_free(tmpnvl);
return (rc);
}