Commit b3948177 authored by antirez's avatar antirez
Browse files

Fix memory leak in RM_UnregisterCommandFilter().

parent 0a07f8ff
...@@ -5036,6 +5036,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi ...@@ -5036,6 +5036,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
if (!ln) return REDISMODULE_ERR; /* Shouldn't happen */ if (!ln) return REDISMODULE_ERR; /* Shouldn't happen */
listDelNode(ctx->module->filters,ln); listDelNode(ctx->module->filters,ln);
zfree(filter);
return REDISMODULE_OK; return REDISMODULE_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment