"vscode:/vscode.git/clone" did not exist on "fb732f7a944a4d4c90bb7375cb6030e88211f5aa"
Commit 01b6966a authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3843 from dvirsky/fix_bc_free

fixed free of blocked client before refering to it
parents ffefc9f9 4b2229e4
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment