diff --git a/contrib/epee/src/mlocker.cpp b/contrib/epee/src/mlocker.cpp index 8e24e8438..0b41c36bf 100644 --- a/contrib/epee/src/mlocker.cpp +++ b/contrib/epee/src/mlocker.cpp @@ -98,8 +98,8 @@ namespace epee } std::map &mlocker::map() { - static std::map vmap; - return vmap; + static std::map *vmap = new std::map(); + return *vmap; } size_t mlocker::get_page_size()