Fix memory leak in RM_UnregisterCommandFilter().

This commit is contained in:
antirez 2019-09-27 18:32:52 +02:00
parent 0a07f8ffee
commit b394817754

View File

@ -5036,6 +5036,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
if (!ln) return REDISMODULE_ERR; /* Shouldn't happen */
listDelNode(ctx->module->filters,ln);
zfree(filter);
return REDISMODULE_OK;
}