Merge pull request #2276 from taosdata/hotfix/TD-562

fixbug TD-562
This commit is contained in:
Shengliang Guan 2020-06-15 12:45:27 +08:00 committed by GitHub
commit eb3bf38096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -817,7 +817,7 @@ void queryDB(TAOS *taos, char *command) {
i--;
}
if (i == 0) {
if (code != 0) {
fprintf(stderr, "Failed to run %s, reason: %s\n", command, taos_errstr(pSql));
taos_free_result(pSql);