[td-255] fix bug found by regression test.

This commit is contained in:
Haojun Liao 2021-09-06 18:24:18 +08:00
parent 1f15dda4ad
commit e2e4487fc2
1 changed files with 2 additions and 0 deletions

View File

@ -4322,7 +4322,9 @@ void tscTryQueryNextClause(SSqlObj* pSql, __async_cb_func_t fp) {
}
tfree(pSql->pSubs);
tfree(pSql->subState.states);
pSql->subState.numOfSub = 0;
pthread_mutex_destroy(&pSql->subState.mutex);
pSql->fp = fp;