fix state mem leak

This commit is contained in:
yihaoDeng 2023-08-01 08:09:10 +00:00
parent 26375e834a
commit 111481cef9
1 changed files with 2 additions and 0 deletions

View File

@ -1625,9 +1625,11 @@ int32_t streamStateSessionGetKVByCur_rocksdb(SStreamStateCur* pCur, SSessionKey*
if (pVLen != NULL) *pVLen = len;
if (pKTmp->opNum != pCur->number) {
taosMemoryFree(val);
return -1;
}
if (pKey->groupId != 0 && pKey->groupId != pKTmp->key.groupId) {
taosMemoryFree(val);
return -1;
}
*pKey = pKTmp->key;