3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
memory leaks
This commit is contained in:
Nikolaj Bjorner 2021-05-19 12:42:38 -07:00
parent abe3ef2382
commit ec034679ce
7 changed files with 26 additions and 18 deletions

View file

@ -137,6 +137,7 @@ struct gparams::imp {
smap<params_ref* > m_module_params;
params_ref m_params;
region m_region;
std::string m_buffer;
void check_registered() {
if (m_modules_registered)
@ -651,3 +652,8 @@ void gparams::finalize() {
dealloc(g_imp);
DEALLOC_MUTEX(gparams_mux);
}
std::string& gparams::g_buffer() {
SASSERT(g_imp);
return g_imp->m_buffer;
}

View file

@ -26,6 +26,9 @@ class gparams {
public:
typedef default_exception exception;
static std::string& g_buffer();
/**
\brief Reset all global and module parameters.
*/

View file

@ -153,4 +153,5 @@ void scoped_timer::finalize() {
}
}
num_workers = 0;
available_workers.clear();
}