提交 fa3f9707 编写于 作者: D dapan1121

fix mem leak

上级 7e2345e3
......@@ -1384,8 +1384,11 @@ int taos_stmt_close(TAOS_STMT* stmt) {
free(normal->parts);
free(normal->sql);
} else {
taosHashCleanup(pStmt->mtb.pTableHash);
taosHashCleanup(pStmt->mtb.pTableBlockHashList);
if (pStmt->multiTbInsert) {
taosHashCleanup(pStmt->mtb.pTableHash);
pStmt->mtb.pTableBlockHashList = tscDestroyBlockHashTable(pStmt->mtb.pTableBlockHashList, true);
taosHashCleanup(pStmt->pSql->cmd.pTableBlockHashList);
}
}
taos_free_result(pStmt->pSql);
......
......@@ -2050,6 +2050,8 @@ int sql_perf_s1(TAOS *taos) {
free(sql[i]);
}
free(sql);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册