diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index 58563254e840c7148800fef394b60cb5f01d9b63..c5ff79dd22ccb1e02b3d6730abfbcbd58acc3a48 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -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; }