fix mem leak

This commit is contained in:
wpan 2021-08-17 14:04:27 +08:00
parent e43b3c330a
commit 2fde105908
2 changed files with 2 additions and 2 deletions

View File

@ -2743,7 +2743,7 @@ void tscHandleSubqueryError(SRetrieveSupport *trsupport, SSqlObj *pSql, int numO
SSqlObj *userSql = ((SRetrieveSupport*)pParentSql->param)->pParentSql;
tscFreeRetrieveSupporters(pParentSql);
tscFreeRetrieveSup(pParentSql);
tscFreeSubobj(userSql);
tfree(userSql->pSubs);

View File

@ -3767,7 +3767,7 @@ static void tscSubqueryCompleteCallback(void* param, TAOS_RES* tres, int code) {
SSqlObj *userSql = ((SRetrieveSupport*)pParentSql->param)->pParentSql;
tscFreeRetrieveSupporters(pParentSql);
tscFreeRetrieveSup(pParentSql);
tscFreeSubobj(userSql);
tfree(userSql->pSubs);