6659 nvlist_free(NULL) is a no-op
@@ -432,14 +432,13 @@ 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) + if (rc == FMEV_SUCCESS) nvlist_free(nvl); - if (tmpnvl) nvlist_free(tmpnvl); return (rc); }