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
42fd522c
Unverified
Commit
42fd522c
authored
Jun 22, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 22, 2020
Browse files
Merge pull request #7421 from hwware/sentinel_leak_fix
fix memory leak in sentinel connection sharing
parents
5e46e080
1bfa2d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
42fd522c
...
@@ -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