From 50c46b59ceccfbe5c497eebcfa37fdcbd13e9376 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Sat, 28 Mar 2020 13:58:37 +0800 Subject: [PATCH] fix pTree memory leak in vnodeQueryImpl.c --- src/system/detail/src/vnodeQueryImpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index 4addadd72b..877602c97f 100644 --- a/src/system/detail/src/vnodeQueryImpl.c +++ b/src/system/detail/src/vnodeQueryImpl.c @@ -5837,6 +5837,7 @@ int32_t doMergeMetersResultsToGroupRes(STableQuerySupportObj *pSupporter, SQuery } else { // copy data to disk buffer if (buffer[0]->numOfElems == pQuery->pointsToRead) { if (flushFromResultBuf(pSupporter, pQuery, pRuntimeEnv) != TSDB_CODE_SUCCESS) { + tfree(pTree); return -1; } -- GitLab