diff options
author | wyx <wyx@zhihu.com> | 2016-09-09 10:22:57 +0800 |
---|---|---|
committer | wyx <wyx@zhihu.com> | 2016-09-09 10:22:57 +0800 |
commit | f9c9b4bf4c40820350bf037d6c33f28092b70423 (patch) | |
tree | 45f693c44a87af7a491be133316df8cb179d5f72 | |
parent | 0d179d17ba8a93d0a74ea8ecbbe383cc884fcb85 (diff) | |
download | redis-f9c9b4bf4c40820350bf037d6c33f28092b70423.tar.gz |
fix memory error on module unload
-rw-r--r-- | src/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c index e0bc417d6..feab67dfb 100644 --- a/src/module.c +++ b/src/module.c @@ -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; |