diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-12-04 17:30:46 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-12-04 17:30:46 +0200 |
commit | 16dc6900fb556b61edaba5e323497e9b8c677ae2 (patch) | |
tree | a30444d96042a869ba0557d9a7b5091384e143ab /contrib | |
parent | Merge pull request #4882 (diff) | |
parent | mlocker: fix access to global lock map after dtor on exit (diff) | |
download | monero-16dc6900fb556b61edaba5e323497e9b8c677ae2.tar.xz |
Merge pull request #4883
40485a73 mlocker: fix access to global lock map after dtor on exit (moneromooo-monero)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/src/mlocker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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() |