未验证 提交 4d15e9c8 编写于 作者: Y Yang Zhao 提交者: GitHub

[TD-11327]<fix>taosdemo CmdLine Memory leak (#8792)

上级 e72db921
......@@ -1654,7 +1654,6 @@ void *queryStableAggrFunc(void *sarg) {
if (code != 0) {
errorPrint("Failed to query:%s\n", taos_errstr(pSql));
taos_free_result(pSql);
taos_close(taos);
fclose(fp);
free(command);
return NULL;
......
......@@ -781,6 +781,7 @@ int createDatabasesAndStables(char *command) {
tmfree(cmd);
if (0 != ret) {
tmfree(g_Dbs.db[i].superTbls[j].colsOfCreateChildTable);
errorPrint("create super table %" PRIu64 " failed!\n\n", j);
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册