mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
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)
|
||||
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…
Reference in New Issue
Block a user