mirror of
https://github.com/monero-project/monero.git
synced 2025-03-12 09:28:28 +00:00
mlocker: fix access to global lock map after dtor on exit
as the lock, it now leaks
This commit is contained in:
parent
5544bb8359
commit
1de62cb136
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ namespace epee
|
|||
}
|
||||
std::map<size_t, unsigned int> &mlocker::map()
|
||||
{
|
||||
static std::map<size_t, unsigned int> vmap;
|
||||
return vmap;
|
||||
static std::map<size_t, unsigned int> *vmap = new std::map<size_t, unsigned int>();
|
||||
return *vmap;
|
||||
}
|
||||
|
||||
size_t mlocker::get_page_size()
|
||||
|
|
Loading…
Reference in a new issue