fix invalid read

This commit is contained in:
yihaoDeng 2024-09-22 08:13:00 +08:00
parent 1192bc903f
commit c1473a9b4b
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ static void addConnToPool(void* pool, SCliConn* conn) {
static int32_t allocConnRef(SCliConn* conn, bool update) { static int32_t allocConnRef(SCliConn* conn, bool update) {
if (update) { if (update) {
TAOS_UNUSED(transReleaseExHandle(transGetRefMgt(), conn->refId)); TAOS_UNUSED(transReleaseExHandle(transGetRefMgt(), conn->refId));
TAOS_UNUSED((transGetRefMgt(), conn->refId)); TAOS_UNUSED(transRemoveExHandle(transGetRefMgt(), conn->refId));
conn->refId = -1; conn->refId = -1;
} }