Print this page
patch cleanup
6659 nvlist_free(NULL) is a no-op
@@ -22,12 +22,10 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Disk & Indicator Monitor configuration file support routines
*/
#include <sys/types.h>
@@ -373,19 +371,17 @@
/* Free the whole list */
while (dmp != NULL) {
nextp = dmp->next;
- if (dmp->props)
nvlist_free(dmp->props);
if (dmp->location)
dstrfree(dmp->location);
if (dmp->ind_list)
ind_free(dmp->ind_list);
if (dmp->indrule_list)
indrule_free(dmp->indrule_list);
- if (dmp->app_props)
nvlist_free(dmp->app_props);
if (dmp->frup)
dmfru_free(dmp->frup);
dfree(dmp, sizeof (diskmon_t));