Make module tests pass with valgrind, and fix a leak in diskless load

This commit is contained in:
Oran Agra
2019-10-24 09:45:25 +03:00
parent 673c9d7029
commit be352633a0
4 changed files with 36 additions and 28 deletions

View File

@ -147,3 +147,8 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
return REDISMODULE_OK;
}
int RedisModule_OnUnload(RedisModuleCtx *ctx) {
RedisModule_FreeString(ctx, log_key_name);
return REDISMODULE_OK;
}