From 04d501d64aa723f2dbc18ce18c5ee5a02eb64255 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Wed, 15 Mar 2023 17:41:29 +0800 Subject: [PATCH] fix: destroy aColArray anyway --- source/dnode/vnode/src/tsdb/tsdbCache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbCache.c b/source/dnode/vnode/src/tsdb/tsdbCache.c index 556da75a12..9f438a9f97 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCache.c +++ b/source/dnode/vnode/src/tsdb/tsdbCache.c @@ -1662,17 +1662,15 @@ static int32_t mergeLast(tb_uid_t uid, STsdb *pTsdb, SArray **ppLastArray, SCach if (ignoreEarlierTs) { taosArrayDestroy(pColArray); pColArray = NULL; - taosArrayDestroy(aColArray); - aColArray = NULL; } else { taosArrayClear(pColArray); - taosArrayClear(aColArray); } } *ppLastArray = pColArray; //} nextRowIterClose(&iter); + taosArrayDestroy(aColArray); // taosMemoryFreeClear(pTSchema); return code; -- GitLab