Merge pull request #4883

40485a73 mlocker: fix access to global lock map after dtor on exit (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-12-04 17:30:46 +02:00
commit 16dc6900fb
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,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()