fix state mem leak

This commit is contained in:
yihaoDeng 2023-08-02 03:18:59 +00:00
parent 111481cef9
commit 83468a7710
1 changed files with 6 additions and 0 deletions

View File

@ -1632,6 +1632,12 @@ int32_t streamStateSessionGetKVByCur_rocksdb(SStreamStateCur* pCur, SSessionKey*
taosMemoryFree(val);
return -1;
}
if (pVal != NULL) {
*pVal = (char*)val;
} else {
taosMemoryFree(val);
}
*pKey = pKTmp->key;
return 0;
}