fix crash when import csv
This commit is contained in:
parent
c55c464664
commit
5137e8818e
|
@ -407,7 +407,7 @@ void tscResetSqlCmdObj(SSqlCmd* pCmd, bool removeFromCache) {
|
||||||
pCmd->autoCreated = 0;
|
pCmd->autoCreated = 0;
|
||||||
|
|
||||||
for(int32_t i = 0; i < pCmd->numOfTables; ++i) {
|
for(int32_t i = 0; i < pCmd->numOfTables; ++i) {
|
||||||
if (pCmd->pTableMetaList[i] != NULL) {
|
if (pCmd->pTableMetaList && pCmd->pTableMetaList[i]) {
|
||||||
taosCacheRelease(tscMetaCache, (void**)&(pCmd->pTableMetaList[i]), false);
|
taosCacheRelease(tscMetaCache, (void**)&(pCmd->pTableMetaList[i]), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue