summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-06-22 11:06:50 +0200
committerGitHub <noreply@github.com>2020-06-22 11:06:50 +0200
commit42fd522c630d56c577f2b62e238ce0b5dce42c3a (patch)
treecddacbb13749f60ff3ed58da6b00d009a4690577
parent5e46e0800bbc42cb8c0c63b53ed4d21233704a60 (diff)
parent1bfa2d27a637119226ee3244d2d219c7e5a7ff33 (diff)
downloadredis-42fd522c630d56c577f2b62e238ce0b5dce42c3a.tar.gz
Merge pull request #7421 from hwware/sentinel_leak_fix
fix memory leak in sentinel connection sharing
-rw-r--r--src/sentinel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index fb504ae4d..5be4193dc 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -1076,6 +1076,7 @@ int sentinelTryConnectionSharing(sentinelRedisInstance *ri) {
releaseInstanceLink(ri->link,NULL);
ri->link = match->link;
match->link->refcount++;
+ dictReleaseIterator(di);
return C_OK;
}
dictReleaseIterator(di);