Removed a leak in the BRPOPLPUSH unrelated to issue 561

This commit is contained in:
antirez
2011-05-27 14:09:50 +02:00
parent 20867e8009
commit d7061f8137

View File

@ -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;