mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Free module context after loading.
Now that modules receive RedisModuleString objects on loading, they are allowed to call the String API, so the context must be released correctly. Related to #3293.
This commit is contained in:
parent
b6cd008508
commit
9a02dac2e8
@ -2946,6 +2946,7 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
|
||||
dictAdd(modules,ctx.module->name,ctx.module);
|
||||
ctx.module->handle = handle;
|
||||
serverLog(LL_NOTICE,"Module '%s' loaded from %s",ctx.module->name,path);
|
||||
moduleFreeContext(&ctx);
|
||||
return C_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user