Remove wrong decrRefCount() from getNodeByQuery().

This fixes issue #607.
This commit is contained in:
antirez 2013-02-15 11:57:53 +01:00
parent 20f52b5b78
commit 7371d5e248

View File

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