mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Merge pull request #3843 from dvirsky/fix_bc_free
fixed free of blocked client before refering to it
This commit is contained in:
commit
01b6966afc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user