fix:[TD-26671] judge if pointer is null to avoid core dump
This commit is contained in:
parent
f7d1e0ea82
commit
05c016b667
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue