From 73c6b2f21a67bed186a279adacb4eb28eafcd853 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Sat, 2 Oct 2010 06:14:33 +0000 Subject: protocol/client: Fix dumping of locks in client. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Vijay Bellur BUG: 865 (Add locks recovery support in GlusterFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865 --- xlators/protocol/client/src/client3_1-fops.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xlators/protocol/client/src/client3_1-fops.c') diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c index 786db4c7..f4a9b198 100644 --- a/xlators/protocol/client/src/client3_1-fops.c +++ b/xlators/protocol/client/src/client3_1-fops.c @@ -4081,6 +4081,7 @@ client3_1_getxattr (call_frame_t *frame, xlator_t *this, if (args && args->name) { if (is_client_dump_locks_cmd ((char *)args->name)) { + dict = dict_new (); ret = client_dump_locks ((char *)args->name, args->loc->inode, dict); @@ -4111,9 +4112,7 @@ client3_1_getxattr (call_frame_t *frame, xlator_t *this, return 0; unwind: - STACK_UNWIND_STRICT (getxattr, frame, op_ret, op_errno, NULL); - if (dict) - dict_unref (dict); + STACK_UNWIND_STRICT (getxattr, frame, op_ret, op_errno, dict); return 0; } -- cgit