diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-write.c')
| -rw-r--r-- | xlators/cluster/afr/src/afr-dir-write.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c index 9d7e74e78..439e8d8c7 100644 --- a/xlators/cluster/afr/src/afr-dir-write.c +++ b/xlators/cluster/afr/src/afr-dir-write.c @@ -58,9 +58,9 @@ afr_build_parent_loc (loc_t *parent, loc_t *child)  		return;  	} -	tmp = strdup (child->path); -	parent->path   = strdup (dirname (tmp)); -	FREE (tmp); +	tmp = gf_strdup (child->path); +	parent->path   = gf_strdup (dirname (tmp)); +	GF_FREE (tmp);          parent->name   = strrchr (parent->path, '/');  	if (parent->name) @@ -1315,7 +1315,7 @@ afr_symlink (call_frame_t *frame, xlator_t *this,          }          UNLOCK (&priv->read_child_lock); -	local->cont.symlink.linkpath = strdup (linkpath); +	local->cont.symlink.linkpath = gf_strdup (linkpath);          if (loc->parent)                  local->cont.symlink.parent_ino = loc->parent->ino;  | 
