Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4b2229e4
Commit
4b2229e4
authored
Mar 01, 2017
by
Dvir Volk
Browse files
fixed free of blocked client before refering to it
parent
9cc83d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
4b2229e4
...
...
@@ -3217,8 +3217,8 @@ void moduleHandleBlockedClients(void) {
}
if (bc->privdata && bc->free_privdata)
bc->free_privdata(bc->privdata);
zfree
(
bc
);
if (c != NULL) unblockClient(c);
zfree(bc);
/* Lock again before to iterate the loop. */
pthread_mutex_lock(&moduleUnblockedClientsMutex);
...
...
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