diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-02 12:59:06 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-02 12:59:43 +0000 |
commit | 0cfd2ae5e774ff845abb669d6bfd63e5c838039f (patch) | |
tree | 5f588abbe866e020a2a9485fd5974ff4e0128a38 /contrib | |
parent | Merge pull request #4676 (diff) | |
download | monero-0cfd2ae5e774ff845abb669d6bfd63e5c838039f.tar.xz |
mlocker: fix dtor ordering problem
leak the mutex instead, it's a one off
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 5573d591a..c3262e8f4 100644 --- a/contrib/epee/src/mlocker.cpp +++ b/contrib/epee/src/mlocker.cpp @@ -84,8 +84,8 @@ namespace epee boost::mutex &mlocker::mutex() { - static boost::mutex vmutex; - return vmutex; + static boost::mutex *vmutex = new boost::mutex(); + return *vmutex; } std::map<size_t, unsigned int> &mlocker::map() { |