modules/RM_OpenKey: avoid decrRefCount obj twice

This commit is contained in:
Sun He 2016-04-06 22:47:52 +08:00 committed by antirez
parent 1868dee6f2
commit 3a7b170205

View File

@ -569,7 +569,6 @@ void *RM_OpenKey(RedisModuleCtx *ctx, robj *keyname, int mode) {
} else {
value = lookupKeyRead(ctx->client->db,keyname);
if (value == NULL) {
decrRefCount(keyname);
return NULL;
}
}