Print this page
patch cleanup
6659 nvlist_free(NULL) is a no-op

*** 22,33 **** /* * 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> --- 22,31 ----
*** 373,391 **** /* 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)); --- 371,387 ----