From 1175e8343f052b9b6f9c7cdfea49ae46a1dfd43e Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 16 Mar 2021 11:37:43 +0800 Subject: [PATCH] [td-225] add more check. --- src/query/src/qSqlParser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/query/src/qSqlParser.c b/src/query/src/qSqlParser.c index d7c708d9ef..e76b78c523 100644 --- a/src/query/src/qSqlParser.c +++ b/src/query/src/qSqlParser.c @@ -474,7 +474,10 @@ SFromInfo *setSubquery(SFromInfo* pFromInfo, SQuerySqlNode* pSqlNode) { } void* destroyFromInfo(SFromInfo* pFromInfo) { - assert(pFromInfo != NULL); + if (pFromInfo == NULL) { + return NULL; + } + if (pFromInfo->type == SQL_NODE_FROM_NAMELIST) { taosArrayDestroy(pFromInfo->tableList); } else { -- GitLab