1
0
Fork 0
mirror of https://git.wownero.com/wownero/wownero.git synced 2024-08-15 01:03:23 +00:00

mlocker: fix access to global lock map after dtor on exit

as the lock, it now leaks
This commit is contained in:
moneromooo-monero 2018-11-22 01:39:12 +00:00
parent 84dd674cd0
commit 40485a73b6
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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()