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

as the lock, it now leaks
release-v0.5.1
moneromooo-monero 6 years ago committed by wowario
parent b91d510669
commit 56b6e9a89f
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -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…
Cancel
Save