mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 03:34:58 -04:00
various: do not propagate exception through dtor
Coverity 189689, 189690, 189692, 189695
This commit is contained in:
parent
d0c4123034
commit
2b3595d0fe
4 changed files with 11 additions and 4 deletions
|
@ -73,7 +73,7 @@ namespace epee
|
|||
mlocked(const T &&t): T(t) { mlocker::lock(this, sizeof(T)); }
|
||||
mlocked(const mlocked<T> &&mt): T(mt) { mlocker::lock(this, sizeof(T)); }
|
||||
mlocked<T> &operator=(const mlocked<T> &mt) { T::operator=(mt); return *this; }
|
||||
~mlocked() { mlocker::unlock(this, sizeof(T)); }
|
||||
~mlocked() { try { mlocker::unlock(this, sizeof(T)); } catch (...) { /* do not propagate */ } }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue