[td-1641]

This commit is contained in:
Haojun Liao 2020-10-10 21:15:01 +08:00
parent 97e69185f6
commit 83f8316e70
1 changed files with 5 additions and 0 deletions

View File

@ -1907,7 +1907,12 @@ static void multiVnodeInsertFinalize(void* param, TAOS_RES* tres, int numOfRows)
pParentObj->res.code = pSql->res.code; pParentObj->res.code = pSql->res.code;
} }
assert(pParentObj->pSubs[pSupporter->index] == tres);
pParentObj->pSubs[pSupporter->index] = 0;
taos_free_result(tres);
taosTFree(pSupporter); taosTFree(pSupporter);
if (atomic_sub_fetch_32(&pState->numOfRemain, 1) > 0) { if (atomic_sub_fetch_32(&pState->numOfRemain, 1) > 0) {
return; return;
} }