mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-08 19:01:43 +00: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
|
@ -108,7 +108,8 @@ namespace epee
|
|||
|
||||
mlocker::~mlocker()
|
||||
{
|
||||
unlock(ptr, len);
|
||||
try { unlock(ptr, len); }
|
||||
catch (...) { /* ignore and do not propagate through the dtor */ }
|
||||
}
|
||||
|
||||
void mlocker::lock(void *ptr, size_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue