[td-1391] fix bugs in release obj in submit processing.

This commit is contained in:
Haojun Liao 2020-09-14 16:55:08 +08:00
parent 10c504da8c
commit 0c43959191
1 changed files with 2 additions and 0 deletions

View File

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