fix:memory leak
This commit is contained in:
parent
d7dce180e4
commit
af64ab26c8
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue