Commit 3a7b1702 authored by Sun He's avatar Sun He Committed by antirez
Browse files

modules/RM_OpenKey: avoid decrRefCount obj twice

parent 1868dee6
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment