Merge pull request #25798 from taosdata/fix/backendInvalidFree
Fix/backendInvalidFree
This commit is contained in:
commit
b299ff0449
|
@ -2740,9 +2740,11 @@ int32_t streamStateGetGroupKVByCur_rocksdb(SStreamStateCur* pCur, SWinKey* pKey,
|
||||||
if (pKey->groupId == groupId) {
|
if (pKey->groupId == groupId) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (pVal != NULL) {
|
||||||
taosMemoryFree((void*)*pVal);
|
taosMemoryFree((void*)*pVal);
|
||||||
*pVal = NULL;
|
*pVal = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
int32_t streamStateAddIfNotExist_rocksdb(SStreamState* pState, const SWinKey* key, void** pVal, int32_t* pVLen) {
|
int32_t streamStateAddIfNotExist_rocksdb(SStreamState* pState, const SWinKey* key, void** pVal, int32_t* pVLen) {
|
||||||
|
|
Loading…
Reference in New Issue