Merge pull request #16419 from taosdata/fix/TD-18586

fix: free ofp large value's memory
This commit is contained in:
Hongze Cheng 2022-08-25 18:55:45 +08:00 committed by GitHub
commit 5ce84e4316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -782,6 +782,11 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx, TXN *pTx
pBt);
tdbPageInsertCell(pParent, sIdx++, pNewCell, szNewCell, 0);
tdbOsFree(pNewCell);
if (TDB_CELLDECODER_FREE_VAL(&cd)) {
tdbFree(cd.pVal);
cd.pVal = NULL;
}
}
// move to next new page