diff --git a/include/libs/parser/parser.h b/include/libs/parser/parser.h index 8f227459735f8c43f74b760b16b4b133c883c95b..7f28bfc175c3d71a1fded6c97dfe6c6c41fc0f45 100644 --- a/include/libs/parser/parser.h +++ b/include/libs/parser/parser.h @@ -78,6 +78,7 @@ int32_t qContinueParseSql(SParseContext* pCxt, struct SCatalogReq* pCatalogReq, void qDestroyParseContext(SParseContext* pCxt); void qDestroyQuery(SQuery* pQueryNode); +void insDestroyTableDataCxt(STableDataCxt *pTableCxt); int32_t qExtractResultSchema(const SNode* pRoot, int32_t* numOfCols, SSchema** pSchema); int32_t qSetSTableIdForRsma(SNode* pStmt, int64_t uid); diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 71349e61ecc70750c3f4a367cfb9056c9921c320..dd754aba7a118fc798e149267676ecab74e411c6 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1021,6 +1021,7 @@ static void smlDestroyTableInfo(SSmlHandle *info, SSmlTableInfo *tag) { taosMemoryFree(tag->key); taosArrayDestroy(tag->cols); taosArrayDestroy(tag->tags); + insDestroyTableDataCxt(tag->tableDataCtx); taosMemoryFree(tag); } diff --git a/source/libs/parser/inc/parInsertUtil.h b/source/libs/parser/inc/parInsertUtil.h index 7b816359f9c77b5fe370177fae2aedc67d6cc9a3..9eec5cbaf055799ff389675291b7f813eaf4a2f7 100644 --- a/source/libs/parser/inc/parInsertUtil.h +++ b/source/libs/parser/inc/parInsertUtil.h @@ -55,7 +55,6 @@ void insDestroyTableDataCxtHashMap(SHashObj *pTableCxtHash); void insDestroyVgroupDataCxt(SVgroupDataCxt *pVgCxt); void insDestroyVgroupDataCxtList(SArray *pVgCxtList); void insDestroyVgroupDataCxtHashMap(SHashObj *pVgCxtHash); -void insDestroyTableDataCxt(STableDataCxt *pTableCxt); void insDestroyBoundColInfo(SBoundColInfo *pInfo); #endif // TDENGINE_PAR_INSERT_UTIL_H