Print this page
6659 nvlist_free(NULL) is a no-op
@@ -1064,11 +1064,10 @@
if (rfs4_dss_paths != NULL) {
/*
* Before we lose the ptr, destroy the nvlist and pathnames
* array from the warm start before this one.
*/
- if (rfs4_dss_oldpaths)
nvlist_free(rfs4_dss_oldpaths);
rfs4_dss_oldpaths = rfs4_dss_paths;
}
/* unpack the buffer into a searchable nvlist */
@@ -1463,13 +1462,11 @@
/* reset the "first NFSv4 request" status */
rfs4_seen_first_compound = 0;
/* DSS: distributed stable storage */
- if (rfs4_dss_oldpaths)
nvlist_free(rfs4_dss_oldpaths);
- if (rfs4_dss_paths)
nvlist_free(rfs4_dss_paths);
rfs4_dss_paths = rfs4_dss_oldpaths = NULL;
}
typedef union {