Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f9c9b4bf
Commit
f9c9b4bf
authored
Sep 09, 2016
by
wyx
Browse files
fix memory error on module unload
parent
0d179d17
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
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
);
dictDelete
NoFree
(
modules
,
module
->
name
);
moduleFreeModuleStructure
(
module
);
moduleFreeModuleStructure
(
module
);
return
REDISMODULE_OK
;
return
REDISMODULE_OK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment