diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-15 13:51:54 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-15 15:53:21 +0000 |
commit | 2b3595d0fe056ec4245ad3177d56c1e92da1ff9e (patch) | |
tree | b889e5f02780a6bf547cab83f7d6952f05313665 /contrib/epee/src/mlocker.cpp | |
parent | Merge pull request #4842 (diff) | |
download | monero-2b3595d0fe056ec4245ad3177d56c1e92da1ff9e.tar.xz |
various: do not propagate exception through dtor
Coverity 189689, 189690, 189692, 189695
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/src/mlocker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/src/mlocker.cpp b/contrib/epee/src/mlocker.cpp index 5573d591a..eb863b9af 100644 --- a/contrib/epee/src/mlocker.cpp +++ b/contrib/epee/src/mlocker.cpp @@ -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) |