Skip to content

Commit

Permalink
fix crash when import csv
Browse files Browse the repository at this point in the history
  • Loading branch information
yihaoDeng committed Dec 12, 2020
1 parent c55c464 commit 5137e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/src/tscUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void tscResetSqlCmdObj(SSqlCmd* pCmd, bool removeFromCache) {
pCmd->autoCreated = 0;

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);
}
}
Expand Down

0 comments on commit 5137e88

Please sign in to comment.