diff --git a/include/libs/parser/parser.h b/include/libs/parser/parser.h index 7f28bfc175..8f22745973 100644 --- a/include/libs/parser/parser.h +++ b/include/libs/parser/parser.h @@ -78,7 +78,6 @@ 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 dd754aba7a..71349e61ec 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1021,7 +1021,6 @@ 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 9eec5cbaf0..7b816359f9 100644 --- a/source/libs/parser/inc/parInsertUtil.h +++ b/source/libs/parser/inc/parInsertUtil.h @@ -55,6 +55,7 @@ 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