fix(query): add null ptr check.

This commit is contained in:
Haojun Liao 2022-10-31 11:43:00 +08:00
parent f790d91b45
commit 79ea4c2c79
1 changed files with 4 additions and 0 deletions

View File

@ -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);