mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 20:06:32 +02:00
mlocker: fix access to global lock map after dtor on exit
as the lock, it now leaks
This commit is contained in:
parent
84dd674cd0
commit
40485a73b6
@ -89,8 +89,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 New Issue
Block a user