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 3769dbd722
commit 6a1275bcab

View File

@ -826,6 +826,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;