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

fix memory leak in sentinel connection sharing

(cherry picked from commit 1bfa2d27)
(cherry picked from commit d3aa3791)
parent 89c68ba3
......@@ -1061,6 +1061,7 @@ int sentinelTryConnectionSharing(sentinelRedisInstance *ri) {
releaseInstanceLink(ri->link,NULL);
ri->link = match->link;
match->link->refcount++;
dictReleaseIterator(di);
return C_OK;
}
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