[fix bug: no free pSql]
This commit is contained in:
parent
4e1b995372
commit
4dadf6ad64
|
@ -206,9 +206,10 @@ static void shellSourceFile(TAOS *con, char *fptr) {
|
||||||
|
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
fprintf(stderr, "DB error: %s: %s (%d)\n", taos_errstr(con), fname, lineNo);
|
fprintf(stderr, "DB error: %s: %s (%d)\n", taos_errstr(con), fname, lineNo);
|
||||||
|
}
|
||||||
|
|
||||||
/* free local resouce: allocated memory/metric-meta refcnt */
|
/* free local resouce: allocated memory/metric-meta refcnt */
|
||||||
taos_free_result(pSql);
|
taos_free_result(pSql);
|
||||||
}
|
|
||||||
|
|
||||||
memset(cmd, 0, MAX_COMMAND_SIZE);
|
memset(cmd, 0, MAX_COMMAND_SIZE);
|
||||||
cmd_len = 0;
|
cmd_len = 0;
|
||||||
|
|
Loading…
Reference in New Issue