fix:[TD-26671] judge if pointer is null to avoid core dump

This commit is contained in:
wangmm0220 2023-10-11 13:55:54 +08:00
parent f7d1e0ea82
commit 05c016b667
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ SWalReader *walOpenReader(SWal *pWal, SWalFilterCond *cond, int64_t id) {
}
void walCloseReader(SWalReader *pReader) {
if(pReader == NULL) return NULL;
if(pReader == NULL) return;
taosCloseFile(&pReader->pIdxFile);
taosCloseFile(&pReader->pLogFile);