Unverified Commit cfffda83 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #7371 from oranagra/fix_disconnectSlaves

fix disconnectSlaves, to try to free each slave.
parents 74a203a0 12504105
...@@ -1019,7 +1019,6 @@ void disconnectSlaves(void) { ...@@ -1019,7 +1019,6 @@ void disconnectSlaves(void) {
listNode *ln; listNode *ln;
listRewind(server.slaves,&li); listRewind(server.slaves,&li);
while((ln = listNext(&li))) { while((ln = listNext(&li))) {
listNode *ln = listFirst(server.slaves);
freeClient((client*)ln->value); freeClient((client*)ln->value);
} }
} }
......
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