mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
modules/RM_OpenKey: avoid decrRefCount obj twice
This commit is contained in:
parent
1868dee6f2
commit
3a7b170205
@ -569,7 +569,6 @@ void *RM_OpenKey(RedisModuleCtx *ctx, robj *keyname, int mode) {
|
|||||||
} else {
|
} else {
|
||||||
value = lookupKeyRead(ctx->client->db,keyname);
|
value = lookupKeyRead(ctx->client->db,keyname);
|
||||||
if (value == NULL) {
|
if (value == NULL) {
|
||||||
decrRefCount(keyname);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user