From 06f863fbad5a60c2b756cdd9a79f93a5dec9a87c Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 12 Jan 2023 17:38:07 +0800 Subject: [PATCH] fix:memory leak --- source/client/src/clientRawBlockWrite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/client/src/clientRawBlockWrite.c b/source/client/src/clientRawBlockWrite.c index 8ceb2a3380..9a3838a6b4 100644 --- a/source/client/src/clientRawBlockWrite.c +++ b/source/client/src/clientRawBlockWrite.c @@ -1448,6 +1448,7 @@ int taos_write_raw_block_with_fields(TAOS* taos, int rows, char* pData, const ch end: taosMemoryFreeClear(pTableMeta); qDestroyQuery(pQuery); + destroyRequest(pRequest); taosMemoryFree(subReq); return code; } @@ -1639,6 +1640,7 @@ int taos_write_raw_block(TAOS* taos, int rows, char* pData, const char* tbname) end: taosMemoryFreeClear(pTableMeta); qDestroyQuery(pQuery); + destroyRequest(pRequest); taosMemoryFree(subReq); return code; } -- GitLab