fix mem leak

This commit is contained in:
yihaoDeng 2023-02-16 19:17:39 +08:00
parent c20fb3878d
commit 23e1cb8fd5
1 changed files with 2 additions and 0 deletions

View File

@ -1072,6 +1072,8 @@ static void cliHandleBatchReq(SCliBatch* pBatch, SCliThrd* pThrd) {
}
static void cliSendBatchCb(uv_write_t* req, int status) {
SCliConn* conn = req->data;
taosMemoryFree(req);
SCliThrd* thrd = conn->hostThrd;
cliDestroyBatch(conn->pBatch);
conn->pBatch = NULL;