Merge pull request #26982 from taosdata/fix/3.0/TD-31224

fix check return test, tpagebuf freed but not cleared
This commit is contained in:
dapan1121 2024-08-05 19:04:00 +08:00 committed by GitHub
commit 1c5a6419cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}