fix: memory leak problems of parser and planner
This commit is contained in:
parent
37ec05a715
commit
f9bc29d149
|
@ -865,12 +865,15 @@ STableCfg* tableCfgDup(STableCfg* pCfg) {
|
|||
STableCfg* pNew = taosMemoryMalloc(sizeof(*pNew));
|
||||
|
||||
memcpy(pNew, pCfg, sizeof(*pNew));
|
||||
if (pNew->pComment) {
|
||||
if (NULL != pNew->pComment) {
|
||||
pNew->pComment = strdup(pNew->pComment);
|
||||
}
|
||||
if (pNew->pFuncs) {
|
||||
if (NULL != pNew->pFuncs) {
|
||||
pNew->pFuncs = taosArrayDup(pNew->pFuncs);
|
||||
}
|
||||
if (NULL != pNew->pTags) {
|
||||
pNew->pTags = strdup(pNew->pTags);
|
||||
}
|
||||
|
||||
int32_t schemaSize = (pCfg->numOfColumns + pCfg->numOfTags) * sizeof(SSchema);
|
||||
|
||||
|
|
Loading…
Reference in New Issue