summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r--xlators/protocol/client/src/client-lk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-lk.c b/xlators/protocol/client/src/client-lk.c
index 4ad7fc2b1..37cae88b7 100644
--- a/xlators/protocol/client/src/client-lk.c
+++ b/xlators/protocol/client/src/client-lk.c
@@ -164,7 +164,7 @@ __delete_client_lock (client_posix_lock_t *lock)
static void
__destroy_client_lock (client_posix_lock_t *lock)
{
- free (lock);
+ GF_FREE (lock);
}
/* Subtract two locks */
@@ -861,7 +861,7 @@ int
client_attempt_lock_recovery (xlator_t *this, clnt_fd_ctx_t *fdctx)
{
call_frame_t *frame = NULL;
- clnt_local_t *local = NULL;
+ clnt_local_t *local = NULL;
client_posix_lock_t *lock = NULL;
struct flock reserve_flock;
@@ -895,6 +895,7 @@ client_attempt_lock_recovery (xlator_t *this, clnt_fd_ctx_t *fdctx)
construct_reserve_lock (lock, frame, &reserve_flock);
+ frame->local = local;
local->fdctx = fdctx;
local->client_lock = lock;