diff --git a/source/libs/wal/src/walRead.c b/source/libs/wal/src/walRead.c index 885dbf11c8..c0435ca774 100644 --- a/source/libs/wal/src/walRead.c +++ b/source/libs/wal/src/walRead.c @@ -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);