fix state mem leak

This commit is contained in:
yihaoDeng 2023-08-02 03:29:13 +00:00
parent d9fd95777a
commit 6cdf94fec0
1 changed files with 2 additions and 0 deletions

View File

@ -1617,6 +1617,8 @@ int32_t streamStateSessionGetKVByCur_rocksdb(SStreamStateCur* pCur, SSessionKey*
if (len < 0) {
return -1;
}
if (pVal != NULL) *pVal = NULL;
if (pVLen != NULL) *pVLen = 0;
if (pKTmp->opNum != pCur->number) {
taosMemoryFree(val);