Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fe417b06
Commit
fe417b06
authored
Apr 16, 2021
by
guybe7
Committed by
Oran Agra
Jul 21, 2021
Browse files
ReplicationCron: Prevent invalid access to freed pointer (#8799)
Fixes #8797 (cherry picked from commit
a60016e0
)
parent
ea0a3764
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
fe417b06
...
...
@@ -3221,6 +3221,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
...
...
@@ -3233,6 +3234,7 @@ void replicationCron(void) {
serverLog
(
LL_WARNING
,
"Disconnecting timedout replica (full sync): %s"
,
replicationGetSlaveName
(
slave
));
freeClient
(
slave
);
continue
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment