mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Merge branch 'master' of https://github.com/z3prover/z3
This commit is contained in:
commit
c1b03e8ca6
3 changed files with 13 additions and 8 deletions
|
@ -109,13 +109,10 @@ namespace api {
|
|||
|
||||
context::~context() {
|
||||
m_last_obj = nullptr;
|
||||
u_map<api::object*>::iterator it = m_allocated_objects.begin();
|
||||
while (it != m_allocated_objects.end()) {
|
||||
api::object* val = it->m_value;
|
||||
DEBUG_CODE(warning_msg("Uncollected memory: %d: %s", it->m_key, typeid(*val).name()););
|
||||
m_allocated_objects.remove(it->m_key);
|
||||
for (auto& kv : m_allocated_objects) {
|
||||
api::object* val = kv.m_value;
|
||||
DEBUG_CODE(warning_msg("Uncollected memory: %d: %s", kv.m_key, typeid(*val).name()););
|
||||
dealloc(val);
|
||||
it = m_allocated_objects.begin();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -458,7 +458,7 @@ CAMLprim DLL_PUBLIC value n_mk_config() {
|
|||
z3rv = Z3_mk_config();
|
||||
|
||||
if (z3rv == NULL) {
|
||||
caml_raise_with_string(*caml_named_value("Z3EXCEPTION"), "internal error");
|
||||
caml_raise_with_string(*caml_named_value("Z3EXCEPTION"), "Object allocation failed");
|
||||
}
|
||||
|
||||
/* construct simple return value */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue