refactor: fix coverity issues.

This commit is contained in:
Haojun Liao 2023-02-22 16:43:37 +08:00
parent 8532de31cf
commit cd1089acb3
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ static int32_t doAddToBuf(SSDataBlock* pDataBlock, SSortHandle* pHandle) {
void* pPage = getNewBufPage(pHandle->pBuf, &pageId); void* pPage = getNewBufPage(pHandle->pBuf, &pageId);
if (pPage == NULL) { if (pPage == NULL) {
blockDataDestroy(p); blockDataDestroy(p);
taosArrayDestroy(pPageIdList);
return terrno; return terrno;
} }