From 07d8ece3703b29436305d7ee67e967bab79c4c1d Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 27 Oct 2022 22:19:47 +0800 Subject: [PATCH] opt mem --- source/libs/executor/src/scanoperator.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/libs/executor/src/scanoperator.c b/source/libs/executor/src/scanoperator.c index 0123eb2575..f0577358b1 100644 --- a/source/libs/executor/src/scanoperator.c +++ b/source/libs/executor/src/scanoperator.c @@ -4891,6 +4891,12 @@ void destroyTableMergeScanOperatorInfo(void* param) { tsdbReaderClose(pTableScanInfo->pReader); + for (int i = 0; i < taosArrayGetSize(pTableScanInfo->queryConds); i++) { + SQueryTableDataCond* pCond = taosArrayGet(pTableScanInfo->queryConds, i); + taosMemoryFree(pCond->colList); + } + taosArrayDestroy(pTableScanInfo->queryConds); + if (pTableScanInfo->matchInfo.pList != NULL) { taosArrayDestroy(pTableScanInfo->matchInfo.pList); }