fix(query): add null ptr check.
This commit is contained in:
parent
f790d91b45
commit
79ea4c2c79
|
@ -1788,6 +1788,10 @@ void* tableListDestroy(STableListInfo* pTableListInfo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void tableListClear(STableListInfo* pTableListInfo) {
|
void tableListClear(STableListInfo* pTableListInfo) {
|
||||||
|
if (pTableListInfo == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
taosArrayClear(pTableListInfo->pTableList);
|
taosArrayClear(pTableListInfo->pTableList);
|
||||||
taosHashClear(pTableListInfo->map);
|
taosHashClear(pTableListInfo->map);
|
||||||
taosMemoryFree(pTableListInfo->groupOffset);
|
taosMemoryFree(pTableListInfo->groupOffset);
|
||||||
|
|
Loading…
Reference in New Issue