Merge pull request #18295 from taosdata/fix/TD-19579-free-stream-state-cur

fix(stream): free stream state cursor
This commit is contained in:
Shengliang Guan 2022-11-21 15:10:33 +08:00 committed by GitHub
commit 69ce6e1a91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -411,6 +411,7 @@ int32_t streamStateGetFirst(SStreamState* pState, SWinKey* key) {
streamStatePut(pState, &tmp, NULL, 0);
SStreamStateCur* pCur = streamStateSeekKeyNext(pState, &tmp);
int32_t code = streamStateGetKVByCur(pCur, key, NULL, 0);
streamStateFreeCur(pCur);
streamStateDel(pState, &tmp);
return code;
}