fixed free of blocked client before refering to it

This commit is contained in:
Dvir Volk 2017-03-01 16:51:01 +02:00
parent 9cc83d2ad9
commit 4b2229e4b8

View File

@ -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);