mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix memory leak in RM_UnregisterCommandFilter().
This commit is contained in:
parent
0a07f8ffee
commit
b394817754
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user