[fedfs-utils] [PATCH 1/9] nfsref: Fix double-free in nfsref_add_build_fsloc()
Chuck Lever
chuck.lever at oracle.com
Fri Jun 27 11:42:20 PDT 2014
nfs_free_location() already frees new->nfl_hostname.
Fixes: 538e6282 (nfsref: Introduce the "nfsref" command)
Signed-off-by: Chuck Lever <chuck.lever at oracle.com>
---
src/nfsref/add.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/nfsref/add.c b/src/nfsref/add.c
index f18f339cf0ab..865adc0301e2 100644
--- a/src/nfsref/add.c
+++ b/src/nfsref/add.c
@@ -149,7 +149,6 @@ nfsref_add_build_fsloc(const char *server, const char *rootpath,
retval = nsdb_posix_to_path_array(rootpath, &new->nfl_rootpath);
if (retval != FEDFS_OK) {
- free(new->nfl_hostname);
nfs_free_location(new);
return retval;
}
More information about the fedfs-utils-devel
mailing list