Permalink
Browse files

Removed a leak in the BRPOPLPUSH unrelated to issue 561

  • Loading branch information...
1 parent 20867e8 commit d7061f813714e2ec49d4d335fe3fdba092529f2b @antirez committed May 27, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/t_list.c
View
@@ -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;

0 comments on commit d7061f8

Please sign in to comment.