From 6a1275bcab4a363ff297e6a9d40310aea9c7ea9f Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 27 May 2011 14:09:50 +0200 Subject: [PATCH] Removed a leak in the BRPOPLPUSH unrelated to issue 561 --- src/t_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/t_list.c b/src/t_list.c index b2becade..479fce63 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -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;