From 009d5099b49d4953a260b685e1d416ec06d2a7cc Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 30 Mar 2023 01:53:26 +0000 Subject: [PATCH] reset version --- source/libs/stream/src/streamState.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/stream/src/streamState.c b/source/libs/stream/src/streamState.c index 2db4f2491b..1ab7014357 100644 --- a/source/libs/stream/src/streamState.c +++ b/source/libs/stream/src/streamState.c @@ -669,7 +669,7 @@ void streamStateFreeCur(SStreamStateCur* pCur) { } qDebug("streamStateFreeCur"); rocksdb_iter_destroy(pCur->iter); - rocksdb_release_snapshot(pCur->db, pCur->snapshot); + if (pCur->snapshot) rocksdb_release_snapshot(pCur->db, pCur->snapshot); rocksdb_readoptions_destroy(pCur->readOpt); tdbTbcClose(pCur->pCur); -- GitLab