Merge pull request #7371 from oranagra/fix_disconnectSlaves

fix disconnectSlaves, to try to free each slave.
This commit is contained in:
Salvatore Sanfilippo 2020-06-08 10:43:51 +02:00 committed by GitHub
commit cfffda83fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1019,7 +1019,6 @@ void disconnectSlaves(void) {
listNode *ln;
listRewind(server.slaves,&li);
while((ln = listNext(&li))) {
listNode *ln = listFirst(server.slaves);
freeClient((client*)ln->value);
}
}