From 1d02db63ae17788c7ab28ac81dea0675500be845 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Tue, 15 May 2012 16:31:55 +0530 Subject: client/protocol : Changes in client3_1_getxattr() Copy args->loc to local->loc in client3_1_getxattr(). This prevents logs with "(null) (--)" in client3_1_getxattr_cbk(). Also save args->name in local->name and print it in the log as well. Change-Id: I1bfd00c6bbbe9f617744af7acd2f07ceafaadb3a BUG: 812199 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.com/3336 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Anand Avati --- xlators/protocol/client/src/client-helpers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/protocol/client/src/client-helpers.c') diff --git a/xlators/protocol/client/src/client-helpers.c b/xlators/protocol/client/src/client-helpers.c index 70dfeba8c1a..3efadeae265 100644 --- a/xlators/protocol/client/src/client-helpers.c +++ b/xlators/protocol/client/src/client-helpers.c @@ -132,6 +132,10 @@ client_local_wipe (clnt_local_t *local) iobref_unref (local->iobref); } + if (local->name) { + GF_FREE (local->name); + } + mem_put (local); } -- cgit