fix: free btc cell coder's pval memory when closing btc

This commit is contained in:
Minglei Jin 2022-08-04 15:47:31 +08:00
parent 1e8202d195
commit 8dbbd8362e
1 changed files with 4 additions and 0 deletions

View File

@ -2175,6 +2175,10 @@ int tdbBtcClose(SBTC *pBtc) {
pBtc->idx = pBtc->idxStack[pBtc->iPage];
}
if (TDB_CELLDECODER_FREE_VAL(&pBtc->coder)) {
tdbFree(pBtc->coder.pVal);
}
return 0;
}