diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index 64fe529b4f..bb87b5029a 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -1788,6 +1788,10 @@ void* tableListDestroy(STableListInfo* pTableListInfo) { } void tableListClear(STableListInfo* pTableListInfo) { + if (pTableListInfo == NULL) { + return; + } + taosArrayClear(pTableListInfo->pTableList); taosHashClear(pTableListInfo->map); taosMemoryFree(pTableListInfo->groupOffset);