fix:heap use after free

This commit is contained in:
wangmm0220 2023-08-12 10:15:40 +08:00
parent f1baed79b4
commit efb472d54a
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ int32_t tqFetchLog(STQ* pTq, STqHandle* pHandle, int64_t* fetchOffset, uint64_t
goto END; goto END;
} }
pHead = &(pHandle->pWalReader->pHead->head);
if (isValValidForTable(pHandle, pHead)) { if (isValValidForTable(pHandle, pHead)) {
code = 0; code = 0;
goto END; goto END;