From 05c016b667cbc40c6ab045d4d028c5d4cce6f94d Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Wed, 11 Oct 2023 13:55:54 +0800 Subject: [PATCH] fix:[TD-26671] judge if pointer is null to avoid core dump --- source/libs/wal/src/walRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);