mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 19:17:53 +00:00
clear memory on allocation to avoid msan warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7e452254c3
commit
cdf3c48349
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ void tbv_manager::reset() {
|
|||
}
|
||||
tbv* tbv_manager::allocate() {
|
||||
tbv* r = static_cast<tbv*>(m.allocate());
|
||||
m.reset(*r);
|
||||
DEBUG_CODE(
|
||||
if (s_debug_alloc) {
|
||||
TRACE("doc", tout << allocated_tbvs.size() << " " << r << "\n";);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue