Skip to content

Commit f91fccd

Browse files
committed
[td-225] fix bugs in regression test.
1 parent a8bd8db commit f91fccd

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/client/src/tscSubquery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static int32_t tscLaunchRealSubqueries(SSqlObj* pSql) {
278278
tscDebug("%p subIndex: %d, no need to launch query, ignore it", pSql, i);
279279

280280
tscDestroyJoinSupporter(pSupporter);
281-
tscFreeSqlObj(pPrevSub);
281+
taos_free_result(pPrevSub);
282282

283283
pSql->pSubs[i] = NULL;
284284
continue;

src/client/src/tscUtil.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,8 +1743,6 @@ SSqlObj* createSimpleSubObj(SSqlObj* pSql, void (*fp)(), void* param, int32_t cm
17431743
}
17441744

17451745
pNew->pTscObj = pSql->pTscObj;
1746-
T_REF_INC(pNew->pTscObj);
1747-
17481746
pNew->signature = pNew;
17491747

17501748
SSqlCmd* pCmd = &pNew->cmd;
@@ -1777,7 +1775,6 @@ SSqlObj* createSimpleSubObj(SSqlObj* pSql, void (*fp)(), void* param, int32_t cm
17771775
tscAddTableMetaInfo(pQueryInfo, pMasterTableMetaInfo->name, NULL, NULL, NULL);
17781776

17791777
T_REF_INC(pNew->pTscObj);
1780-
17811778
uint64_t p = (uint64_t) pNew;
17821779
pNew->self = taosCachePut(tscObjCache, &p, sizeof(uint64_t), &pNew, sizeof(uint64_t), 2 * 600 * 1000);
17831780
return pNew;

0 commit comments

Comments
 (0)