mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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 {
|
||||
value = lookupKeyRead(ctx->client->db,keyname);
|
||||
if (value == NULL) {
|
||||
decrRefCount(keyname);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user