Merge pull request #27026 from taosdata/fix/TD-31230
fix(tdb/btree): let app own and free key
This commit is contained in:
commit
c5ca8703a1
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue