fix: free ofp large value's memory

This commit is contained in:
Minglei Jin 2022-08-25 17:31:40 +08:00
parent 8802847b66
commit e05169ccc6
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