From 412fc9b0bc596cf5b79f8725a53276df9ccb3af7 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 9 May 2023 11:09:53 +0800 Subject: [PATCH] cache/memory: fix double free issue with tsim/parser/last_cache.sim --- source/dnode/vnode/src/tsdb/tsdbCache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dnode/vnode/src/tsdb/tsdbCache.c b/source/dnode/vnode/src/tsdb/tsdbCache.c index a0c61a8699..df7b940f61 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCache.c +++ b/source/dnode/vnode/src/tsdb/tsdbCache.c @@ -413,6 +413,7 @@ int32_t tsdbCacheGet(STsdb *pTsdb, tb_uid_t uid, SArray *pLastArray, SCacheRowsR if (pTmpColArray && TARRAY_SIZE(pTmpColArray) >= 1) { pLastCol = taosArrayGet(pTmpColArray, 0); + freeCol = false; } // still null, then make up a none col value -- GitLab