fix invalid read
This commit is contained in:
parent
1192bc903f
commit
c1473a9b4b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue