mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Make more obvious why there was issue #3843.
This commit is contained in:
parent
01b6966afc
commit
531647bb1b
@ -3236,6 +3236,9 @@ void moduleHandleBlockedClients(void) {
|
|||||||
if (bc->privdata && bc->free_privdata)
|
if (bc->privdata && bc->free_privdata)
|
||||||
bc->free_privdata(bc->privdata);
|
bc->free_privdata(bc->privdata);
|
||||||
if (c != NULL) unblockClient(c);
|
if (c != NULL) unblockClient(c);
|
||||||
|
/* Free 'bc' only after unblocking the client, since it is
|
||||||
|
* referenced in the client blocking context, and must be valid
|
||||||
|
* when calling unblockClient(). */
|
||||||
zfree(bc);
|
zfree(bc);
|
||||||
|
|
||||||
/* Lock again before to iterate the loop. */
|
/* Lock again before to iterate the loop. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user