summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-05-27 14:09:50 +0200
committerantirez <antirez@gmail.com>2011-05-27 14:09:50 +0200
commitd7061f813714e2ec49d4d335fe3fdba092529f2b (patch)
tree7ae60c78c424bb19d57e0f96341933540ab43e66
parent20867e8009876e50ae1536203a097f4338598943 (diff)
downloadredis-d7061f813714e2ec49d4d335fe3fdba092529f2b.tar.gz
Removed a leak in the BRPOPLPUSH unrelated to issue 561
-rw-r--r--src/t_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/t_list.c b/src/t_list.c
index 6e84ba420..e945ed8b3 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -821,6 +821,7 @@ void unblockClientWaitingData(redisClient *c) {
/* Cleanup the client structure */
zfree(c->bpop.keys);
c->bpop.keys = NULL;
+ if (c->bpop.target) decrRefCount(c->bpop.target);
c->bpop.target = NULL;
c->flags &= ~REDIS_BLOCKED;
c->flags |= REDIS_UNBLOCKED;