[TD_543] fix coverity scan, cid:267813

This commit is contained in:
Shengliang Guan 2020-06-08 14:29:43 +00:00
parent 0f928893e0
commit dadb3adecc
1 changed files with 2 additions and 3 deletions

View File

@ -646,10 +646,9 @@ int taosDumpDb(SDbInfo *dbInfo, SDumpArguments *arguments, FILE *fp) {
taosDumpTable(tableRecord.name, tableRecord.metric, arguments, fp);
}
tclose(fd);
remove(".table.tmp");
close(fd);
return 0;
return remove(".table.tmp");
}
void taosDumpCreateTableClause(STableDef *tableDes, int numOfCols, SDumpArguments *arguments, FILE *fp) {