diff --git a/src/module.c b/src/module.c index f46cfda63..e3a7bb857 100644 --- a/src/module.c +++ b/src/module.c @@ -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; } }