fix memory leak in sentinel connection sharing

This commit is contained in:
hwware 2020-06-21 23:04:28 -04:00
parent 5e46e0800b
commit 1bfa2d27a6

View File

@ -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);