From 7371d5e2489e355e2209db157cc774a8dc1be9f4 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 15 Feb 2013 11:57:53 +0100 Subject: [PATCH] Remove wrong decrRefCount() from getNodeByQuery(). This fixes issue #607. --- src/cluster.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 56cb9978..27347d0d 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1963,7 +1963,6 @@ clusterNode *getNodeByQuery(redisClient *c, struct redisCommand *cmd, robj **arg /* If it is not the first key, make sure it is exactly * the same key as the first we saw. */ if (!equalStringObjects(firstkey,margv[keyindex[j]])) { - decrRefCount(firstkey); getKeysFreeResult(keyindex); return NULL; } -- GitLab