diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-02 08:39:47 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-02 17:28:44 +0000 |
commit | e5108a294a7d4fd923665e059a6eb90b0ab5a337 (patch) | |
tree | 4069f097660a988018796bcfb90003aca7577887 /contrib | |
parent | Merge pull request #4333 (diff) | |
download | monero-e5108a294a7d4fd923665e059a6eb90b0ab5a337.tar.xz |
Catch more exceptions in dtors
Misc coverity reports
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/misc_language.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index d5157365c..7e4eb337d 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -147,7 +147,8 @@ namespace misc_utils {} ~call_befor_die() { - m_func(); + try { m_func(); } + catch (...) { /* ignore */ } } }; |