Commit d680eb6d authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3492 from wyxustcsa09/fix-memory

fix memory error on module unload
parents c6dc8d52 f9c9b4bf
...@@ -3085,7 +3085,7 @@ int moduleUnload(sds name) { ...@@ -3085,7 +3085,7 @@ int moduleUnload(sds name) {
/* Remove from list of modules. */ /* Remove from list of modules. */
serverLog(LL_NOTICE,"Module %s unloaded",module->name); serverLog(LL_NOTICE,"Module %s unloaded",module->name);
dictDelete(modules,module->name); dictDeleteNoFree(modules,module->name);
moduleFreeModuleStructure(module); moduleFreeModuleStructure(module);
return REDISMODULE_OK; 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