modules/RM_OpenKey: avoid decrRefCount obj twice
This commit is contained in:
parent
bf1a285e5b
commit
fdc854f20e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user