fix(tdb/btree): let app own and free key

This commit is contained in:
Minglei Jin 2024-08-07 09:01:24 +08:00
parent a4ddc6c6e6
commit 378c8db881
1 changed files with 0 additions and 1 deletions

View File

@ -1881,7 +1881,6 @@ int tdbBtreeNext(SBTC *pBtc, void **ppKey, int *kLen, void **ppVal, int *vLen) {
if (cd.vLen > 0) {
pVal = tdbRealloc(*ppVal, cd.vLen);
if (pVal == NULL) {
tdbFree(pKey);
return terrno;
}