mirror of https://mirror.osredm.com/root/redis.git
fixed free of blocked client before refering to it
This commit is contained in:
parent
9cc83d2ad9
commit
4b2229e4b8
|
@ -3217,8 +3217,8 @@ 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);
|
||||||
zfree(bc);
|
|
||||||
if (c != NULL) unblockClient(c);
|
if (c != NULL) unblockClient(c);
|
||||||
|
zfree(bc);
|
||||||
|
|
||||||
/* Lock again before to iterate the loop. */
|
/* Lock again before to iterate the loop. */
|
||||||
pthread_mutex_lock(&moduleUnblockedClientsMutex);
|
pthread_mutex_lock(&moduleUnblockedClientsMutex);
|
||||||
|
|
Loading…
Reference in New Issue