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
01b6966a
Commit
01b6966a
authored
Apr 10, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 10, 2017
Browse files
Merge pull request #3843 from dvirsky/fix_bc_free
fixed free of blocked client before refering to it
parents
ffefc9f9
4b2229e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
01b6966a
...
...
@@ -3235,8 +3235,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