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:
commit
1c5a6419cc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue