[TD-5877]<fix> fix mem leak in compact

This commit is contained in:
yihaoDeng 2021-08-06 15:25:20 +08:00
parent de4879f967
commit 710f2d824b
1 changed files with 2 additions and 0 deletions

View File

@ -954,6 +954,8 @@ void SqlInfoDestroy(SSqlInfo *pInfo) {
taosArrayDestroy(pInfo->pAlterInfo->pAddColumns);
tfree(pInfo->pAlterInfo->tagData.data);
tfree(pInfo->pAlterInfo);
} else if (pInfo->type == TSDB_SQL_COMPACT_VNODE) {
tSqlExprListDestroy(pInfo->list);
} else {
if (pInfo->pMiscInfo != NULL) {
taosArrayDestroy(pInfo->pMiscInfo->a);