fix check return test, tpagebuf freed but not cleared

This commit is contained in:
wangjiaming0909 2024-08-05 15:21:25 +08:00
parent 37fc4f5674
commit 040fc8438a
1 changed files with 1 additions and 0 deletions

View File

@ -401,6 +401,7 @@ int32_t createDiskbasedBuf(SDiskbasedBuf** pBuf, int32_t pagesize, int32_t inMem
return TSDB_CODE_SUCCESS;
_error:
destroyDiskbasedBuf(pPBuf);
*pBuf = NULL;
return TSDB_CODE_OUT_OF_MEMORY;
}