Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d3aa3791
Commit
d3aa3791
authored
Jun 21, 2020
by
hwware
Committed by
Oran Agra
Jul 20, 2020
Browse files
fix memory leak in sentinel connection sharing
(cherry picked from commit
1bfa2d27
)
parent
2b189f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
d3aa3791
...
@@ -1076,6 +1076,7 @@ int sentinelTryConnectionSharing(sentinelRedisInstance *ri) {
...
@@ -1076,6 +1076,7 @@ int sentinelTryConnectionSharing(sentinelRedisInstance *ri) {
releaseInstanceLink
(
ri
->
link
,
NULL
);
releaseInstanceLink
(
ri
->
link
,
NULL
);
ri
->
link
=
match
->
link
;
ri
->
link
=
match
->
link
;
match
->
link
->
refcount
++
;
match
->
link
->
refcount
++
;
dictReleaseIterator
(
di
);
return
C_OK
;
return
C_OK
;
}
}
dictReleaseIterator
(
di
);
dictReleaseIterator
(
di
);
...
...
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