Print this page
patch tsoome-feedback
*** 72,82 ****
/*ARGSUSED*/
static int
set_error(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp)
{
- if (nvlp != NULL)
nvlist_free(nvlp);
topo_dprintf(thp, TOPO_DBG_ERR, "%s failed: %s\n", method,
topo_strerror(err));
--- 72,81 ----
*** 86,96 ****
/*ARGSUSED*/
static nvlist_t *
set_nverror(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp)
{
- if (nvlp != NULL)
nvlist_free(nvlp);
topo_dprintf(thp, TOPO_DBG_ERR, "%s failed: %s\n", method,
topo_strerror(err));
--- 85,94 ----
*** 591,601 ****
TOPO_METH_PROP_SET_VERSION, in, &out, err);
nvlist_free(in);
/* no return values */
- if (out != NULL)
nvlist_free(out);
if (rv)
return (-1);
--- 589,598 ----