Commit f9c9b4bf authored by wyx's avatar wyx
Browse files

fix memory error on module unload

parent 0d179d17
......@@ -3085,7 +3085,7 @@ int moduleUnload(sds name) {
/* Remove from list of modules. */
serverLog(LL_NOTICE,"Module %s unloaded",module->name);
dictDelete(modules,module->name);
dictDeleteNoFree(modules,module->name);
moduleFreeModuleStructure(module);
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