fix invalid read
This commit is contained in:
parent
14df30671b
commit
371e9075b7
|
@ -1034,7 +1034,7 @@ static void cliDestroy(uv_handle_t* handle) {
|
||||||
SCliThrd* pThrd = conn->hostThrd;
|
SCliThrd* pThrd = conn->hostThrd;
|
||||||
cliResetConnTimer(conn);
|
cliResetConnTimer(conn);
|
||||||
|
|
||||||
destroyAllReqs(conn);
|
(void)destroyAllReqs(conn);
|
||||||
|
|
||||||
if (conn->refId > 0) {
|
if (conn->refId > 0) {
|
||||||
(void)transReleaseExHandle(transGetRefMgt(), conn->refId);
|
(void)transReleaseExHandle(transGetRefMgt(), conn->refId);
|
||||||
|
@ -1123,7 +1123,7 @@ static void cliHandleException(SCliConn* conn) {
|
||||||
STrans* pInst = pThrd->pInst;
|
STrans* pInst = pThrd->pInst;
|
||||||
|
|
||||||
cliResetConnTimer(conn);
|
cliResetConnTimer(conn);
|
||||||
destroyAllReqs(conn);
|
(void)destroyAllReqs(conn);
|
||||||
|
|
||||||
QUEUE_REMOVE(&conn->q);
|
QUEUE_REMOVE(&conn->q);
|
||||||
if (conn->registered) {
|
if (conn->registered) {
|
||||||
|
|
Loading…
Reference in New Issue