fix mem leak
This commit is contained in:
parent
7e2345e371
commit
fa3f970748
|
@ -1384,8 +1384,11 @@ int taos_stmt_close(TAOS_STMT* stmt) {
|
||||||
free(normal->parts);
|
free(normal->parts);
|
||||||
free(normal->sql);
|
free(normal->sql);
|
||||||
} else {
|
} else {
|
||||||
|
if (pStmt->multiTbInsert) {
|
||||||
taosHashCleanup(pStmt->mtb.pTableHash);
|
taosHashCleanup(pStmt->mtb.pTableHash);
|
||||||
taosHashCleanup(pStmt->mtb.pTableBlockHashList);
|
pStmt->mtb.pTableBlockHashList = tscDestroyBlockHashTable(pStmt->mtb.pTableBlockHashList, true);
|
||||||
|
taosHashCleanup(pStmt->pSql->cmd.pTableBlockHashList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
taos_free_result(pStmt->pSql);
|
taos_free_result(pStmt->pSql);
|
||||||
|
|
|
@ -2050,6 +2050,8 @@ int sql_perf_s1(TAOS *taos) {
|
||||||
free(sql[i]);
|
free(sql[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(sql);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue