nfs_free_location() already frees new->nfl_hostname.

Fixes: 538e6282 (nfsref: Introduce the "nfsref" command)
Signed-off-by: Chuck Lever <[email protected]>
---
 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;
        }


_______________________________________________
fedfs-utils-devel mailing list
[email protected]
https://oss.oracle.com/mailman/listinfo/fedfs-utils-devel

Reply via email to