From 371e9075b7c6c22c36c60640e6cdc8c83f33c152 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 19 Sep 2024 13:02:36 +0800 Subject: [PATCH] fix invalid read --- source/libs/transport/src/transCli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 4bb6efaea5..b85d5214fd 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -1034,7 +1034,7 @@ static void cliDestroy(uv_handle_t* handle) { SCliThrd* pThrd = conn->hostThrd; cliResetConnTimer(conn); - destroyAllReqs(conn); + (void)destroyAllReqs(conn); if (conn->refId > 0) { (void)transReleaseExHandle(transGetRefMgt(), conn->refId); @@ -1123,7 +1123,7 @@ static void cliHandleException(SCliConn* conn) { STrans* pInst = pThrd->pInst; cliResetConnTimer(conn); - destroyAllReqs(conn); + (void)destroyAllReqs(conn); QUEUE_REMOVE(&conn->q); if (conn->registered) {