mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #3826 from charsyam/feature/fix_dlopen_leak
fix missed dlclose leak in module.c
This commit is contained in:
commit
7acf0e0a18
@ -3939,6 +3939,7 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
|
||||
}
|
||||
onload = (int (*)(void *, void **, int))(unsigned long) dlsym(handle,"RedisModule_OnLoad");
|
||||
if (onload == NULL) {
|
||||
dlclose(handle);
|
||||
serverLog(LL_WARNING,
|
||||
"Module %s does not export RedisModule_OnLoad() "
|
||||
"symbol. Module not loaded.",path);
|
||||
|
Loading…
Reference in New Issue
Block a user