release unused handle

This commit is contained in:
yihaoDeng 2022-12-12 19:10:40 +08:00
parent 8cc54650fc
commit 113355e45e
1 changed files with 1 additions and 0 deletions

View File

@ -604,6 +604,7 @@ static int32_t allocConnRef(SCliConn* conn, bool update) {
static int32_t specifyConnRef(SCliConn* conn, bool update, int64_t handle) {
if (update) {
transReleaseExHandle(transGetRefMgt(), conn->refId);
transRemoveExHandle(transGetRefMgt(), conn->refId);
conn->refId = -1;
}