defer free

Former-commit-id: de4217489c87cd8347ecdb7f4df5c3b7615330d6
This commit is contained in:
John Sully 2019-03-05 15:46:19 -05:00
parent af06ffa43a
commit 26c97eafe2

View File

@ -1173,13 +1173,8 @@ void disconnectSlaves(void) {
listRewind(server.slaves, &li);
while ((ln = listNext(&li))) {
client *c = (client*)listNodeValue(ln);
if (FCorrectThread(c)) {
freeClient(c);
}
else {
freeClientAsync(c);
}
}
}
/* Remove the specified client from global lists where the client could