Commit d3aa3791 authored by hwware's avatar hwware Committed by Oran Agra
Browse files

fix memory leak in sentinel connection sharing

(cherry picked from commit 1bfa2d27)
parent 2b189f09
...@@ -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);
......
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