Skip to content

Commit 5d2e8f6

Browse files
author
10255046
committed
Fixes:issue4603
Signed-off-by: 10255046 <wu.shiwei@zte.com.cn>
1 parent c440132 commit 5d2e8f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xlators/mgmt/glusterd/src/glusterd-locks.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ glusterd_mgmt_v3_lock(const char *name, uuid_t uuid, uint32_t *op_errno,
495495
xlator_t *this = THIS;
496496
struct timespec delay = {0};
497497
char *key_dup = NULL;
498+
int keylen;
498499

499500
priv = this->private;
500501
GF_ASSERT(priv);
@@ -584,6 +585,8 @@ glusterd_mgmt_v3_lock(const char *name, uuid_t uuid, uint32_t *op_errno,
584585
if (ret) {
585586
gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_DICT_SET_FAILED,
586587
"Unable to set timer in mgmt_v3 lock");
588+
keylen = strlen(key_dup);
589+
dict_deln(priv->mgmt_v3_lock, key_dup, keylen);
587590
GF_FREE(key_dup);
588591
GF_FREE(mgmt_lock_timer);
589592
goto out;

0 commit comments

Comments
 (0)