diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 0ba57af29c7fd3f2636331ab34822f3c4d6fc772..5a47ed731dd9660d5594ac3859784e3b78fa15d7 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1032,6 +1032,7 @@ static SNode* setDatabaseOptionImpl(SAstCreateContext* pCxt, SNode* pOptions, ED snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, "invalid table_prefix data type"); pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR; } + nodesDestroyNode((SNode*)pNode); break; } case DB_OPTION_TABLE_SUFFIX:{ @@ -1042,6 +1043,7 @@ static SNode* setDatabaseOptionImpl(SAstCreateContext* pCxt, SNode* pOptions, ED snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, "invalid table_suffix data type"); pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR; } + nodesDestroyNode((SNode*)pNode); break; } default: