From 93daebb9d7ef9e5c3b8efac443c05d4e52ca27c3 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 26 Apr 2022 14:41:41 +0800 Subject: [PATCH] fix: fix coredump if mode function with interval --- src/client/src/tscUtil.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 099f01e9a7..47efc29031 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -1528,6 +1528,11 @@ void handleDownstreamOperator(SSqlObj** pSqlObjList, int32_t numOfUpstream, SQue tscDebug("0x%"PRIx64" create QInfo 0x%"PRIx64" to execute the main query while all nest queries are ready", pSql->self, pSql->self); px->pQInfo = createQInfoFromQueryNode(px, &tableGroupInfo, pSourceOperator, NULL, NULL, MASTER_SCAN, pSql->self); + if (px->pQInfo == NULL) { + tscAsyncResultOnError(pSql); + pOutput->code = TSDB_CODE_QRY_OUT_OF_MEMORY; + return; + } px->pQInfo->runtimeEnv.udfIsCopy = true; px->pQInfo->runtimeEnv.pUdfInfo = pUdfInfo; -- GitLab