Unverified Commit a60016e0 authored by guybe7's avatar guybe7 Committed by GitHub
Browse files

ReplicationCron: Prevent invalid access to freed pointer (#8799)

Fixes #8797 
parent 374401d7
......@@ -3402,6 +3402,7 @@ void replicationCron(void) {
serverLog(LL_WARNING, "Disconnecting timedout replica (streaming sync): %s",
replicationGetSlaveName(slave));
freeClient(slave);
continue;
}
}
/* We consider disconnecting only diskless replicas because disk-based replicas aren't fed
......@@ -3414,6 +3415,7 @@ void replicationCron(void) {
serverLog(LL_WARNING, "Disconnecting timedout replica (full sync): %s",
replicationGetSlaveName(slave));
freeClient(slave);
continue;
}
}
}
......
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