3
0
Fork 0
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:
Nikolaj Bjorner 2019-11-29 15:50:49 -08:00
parent 7e452254c3
commit cdf3c48349
2 changed files with 2 additions and 0 deletions

View file

@ -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";);