summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/common.c1
-rw-r--r--xlators/features/locks/src/posix.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
index 0a9c9293f01..24422b494b9 100644
--- a/xlators/features/locks/src/common.c
+++ b/xlators/features/locks/src/common.c
@@ -1215,7 +1215,6 @@ pl_lock_preempt(pl_inode_t *pl_inode, posix_lock_t *reqlock)
{
pl_clean_local(rw->stub->frame->local);
call_unwind_error(rw->stub, -1, EBUSY);
- GF_FREE(lock);
}
return ret;
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index 684a20824b0..d723d798804 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -1226,9 +1226,9 @@ pl_getxattr_clrlk(xlator_t *this, const char *name, inode_t *inode,
out:
GF_FREE(brickname);
GF_FREE(args.opts);
+ GF_FREE(key);
if (op_ret) {
GF_FREE(lk_summary);
- GF_FREE(key);
}
return op_ret;