From 20c9cea5f0b20a2b88d45f122c3c05c475601394 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Mon, 17 Apr 2023 15:50:25 +0800 Subject: [PATCH] fix: free uid list issue --- source/libs/executor/src/executil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index 2716f7fd7d..27ac8e4076 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -454,6 +454,7 @@ int32_t getColInfoResultForGroupby(void* metaHandle, SNodeList* group, STableLis SSDataBlock* pResBlock = NULL; void* keyBuf = NULL; SArray* groupData = NULL; + SArray* pUidTagList = NULL; static T_MD5_CTX lastMd5 = {-1}; static SArray* lastTableList = NULL; @@ -493,7 +494,7 @@ int32_t getColInfoResultForGroupby(void* metaHandle, SNodeList* group, STableLis goto end; } - SArray* pUidTagList = taosArrayInit(8, sizeof(STUidTagInfo)); + pUidTagList = taosArrayInit(8, sizeof(STUidTagInfo)); for (int32_t i = 0; i < rows; ++i) { STableKeyInfo* pkeyInfo = taosArrayGet(pTableListInfo->pTableList, i); STUidTagInfo info = {.uid = pkeyInfo->uid}; -- GitLab