Merge pull request #27026 from taosdata/fix/TD-31230

fix(tdb/btree): let app own and free key
This commit is contained in:
Hongze Cheng 2024-08-07 11:25:34 +08:00 committed by GitHub
commit c5ca8703a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) { if (cd.vLen > 0) {
pVal = tdbRealloc(*ppVal, cd.vLen); pVal = tdbRealloc(*ppVal, cd.vLen);
if (pVal == NULL) { if (pVal == NULL) {
tdbFree(pKey);
return terrno; return terrno;
} }