[td-1641]
This commit is contained in:
parent
47a0bc2c71
commit
7720259011
|
@ -559,7 +559,7 @@ int taos_select_db(TAOS *taos, const char *db) {
|
|||
}
|
||||
|
||||
// send free message to vnode to free qhandle and corresponding resources in vnode
|
||||
static UNUSED_FUNC bool tscKillQueryInDnode(SSqlObj* pSql) {
|
||||
static bool tscKillQueryInDnode(SSqlObj* pSql) {
|
||||
SSqlCmd* pCmd = &pSql->cmd;
|
||||
SSqlRes* pRes = &pSql->res;
|
||||
|
||||
|
|
|
@ -1516,9 +1516,9 @@ static void tscFreeSubSqlObj(SRetrieveSupport *trsupport, SSqlObj *pSql) {
|
|||
SSqlObj *pParentSql = trsupport->pParentSql;
|
||||
|
||||
assert(pSql == pParentSql->pSubs[index]);
|
||||
// pParentSql->pSubs[index] = NULL;
|
||||
//
|
||||
// taos_free_result(pSql);
|
||||
pParentSql->pSubs[index] = NULL;
|
||||
|
||||
taos_free_result(pSql);
|
||||
taosTFree(trsupport->localBuffer);
|
||||
taosTFree(trsupport);
|
||||
}
|
||||
|
|
|
@ -415,7 +415,7 @@ void tscFreeSqlObj(SSqlObj* pSql) {
|
|||
|
||||
tscDebug("%p start to free sqlObj", pSql);
|
||||
|
||||
tscFreeSubobj(pSql);
|
||||
// tscFreeSubobj(pSql);
|
||||
tscPartiallyFreeSqlObj(pSql);
|
||||
|
||||
pSql->signature = NULL;
|
||||
|
|
Loading…
Reference in New Issue