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

as the lock, it now leaks
release-v0.5.0
moneromooo-monero 6 years ago
parent 84dd674cd0
commit 40485a73b6
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -89,8 +89,8 @@ namespace epee
} }
std::map<size_t, unsigned int> &mlocker::map() std::map<size_t, unsigned int> &mlocker::map()
{ {
static std::map<size_t, unsigned int> vmap; static std::map<size_t, unsigned int> *vmap = new std::map<size_t, unsigned int>();
return vmap; return *vmap;
} }
size_t mlocker::get_page_size() size_t mlocker::get_page_size()

Loading…
Cancel
Save