fix:core dump if tqOpen error in vnodeOpen

This commit is contained in:
wangmm0220 2023-12-15 09:07:35 +08:00
parent cc51fd47d0
commit 740228a653
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ STqOffsetStore* tqOffsetOpen(STQ* pTq) {
}
void tqOffsetClose(STqOffsetStore* pStore) {
if(pStore == NULL) return;
tqOffsetCommitFile(pStore);
taosHashCleanup(pStore->pHash);
taosMemoryFree(pStore);