summaryrefslogtreecommitdiffstats
path: root/xlators/features/snapview-client
diff options
context:
space:
mode:
authorMohammed Rafi KC <rkavunga@redhat.com>2015-07-06 12:15:45 +0530
committerVijay Bellur <vbellur@redhat.com>2015-07-09 00:18:07 -0700
commit32207db25eea821dfb1abd033df1013d4b8fc622 (patch)
tree5e6227ebea43fa76da92287e31cee54de55a11ea /xlators/features/snapview-client
parenta6ba145589b626f4254873cd2dffcee37cbbd345 (diff)
snapview-client: Allocate memory using GF_CALLOC
loc->path memory should allocate through GF_CALLOC/GF_MALLOC, since it uses GF_FREE from loc_wipe. Change-Id: If3030175dfb07b0e0b6c0a30234857f8a0780035 BUG: 1240184 Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com> Reviewed-on: http://review.gluster.org/11543 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/snapview-client')
-rw-r--r--xlators/features/snapview-client/src/snapview-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/snapview-client/src/snapview-client.c b/xlators/features/snapview-client/src/snapview-client.c
index c575975d8dc..532b5afe793 100644
--- a/xlators/features/snapview-client/src/snapview-client.c
+++ b/xlators/features/snapview-client/src/snapview-client.c
@@ -531,7 +531,7 @@ svc_statfs (call_frame_t *frame, xlator_t *this, loc_t *loc,
* virtual directory from path
*/
subvolume = FIRST_CHILD (this);
- root_loc.path = "/";
+ root_loc.path = gf_strdup("/");
gf_uuid_clear(root_loc.gfid);
root_loc.gfid[15] = 1;
root_loc.inode = inode_ref (loc->inode->table->root);