Print this page
patch tsoome-feedback
patch cleanup
6659 nvlist_free(NULL) is a no-op
*** 22,33 ****
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
/* enable debug output and some debug asserts */
#undef _IPQOS_CONF_DEBUG
#include <stdlib.h>
#include <unistd.h>
--- 22,31 ----
*** 620,630 ****
goto fail;
}
return (IPQOS_CONF_SUCCESS);
fail:
- if (nvl != NULL)
nvlist_free(nvl);
return (IPQOS_CONF_ERR);
}
--- 618,627 ----
*** 709,719 ****
goto fail;
}
return (IPQOS_CONF_SUCCESS);
fail:
- if (nvl != NULL)
nvlist_free(nvl);
return (IPQOS_CONF_ERR);
}
/*
--- 706,715 ----
*** 774,784 ****
goto fail;
}
return (IPQOS_CONF_SUCCESS);
fail:
- if (nvl != NULL)
nvlist_free(nvl);
return (IPQOS_CONF_ERR);
}
/*
--- 770,779 ----
*** 6343,6353 ****
if (cls == NULL)
return;
/* free its nvlist if present */
- if (cls->nvlist)
nvlist_free(cls->nvlist);
/* free its action refs if present */
if (cls->alist)
--- 6338,6347 ----
*** 6788,6798 ****
ipqos_conf_act_ref_t *aref = arefs;
ipqos_conf_act_ref_t *next;
while (aref) {
- if (aref->nvlist)
nvlist_free(aref->nvlist);
next = aref->next;
free(aref);
aref = next;
}
--- 6782,6791 ----