aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-02 08:39:47 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-02 17:28:44 +0000
commite5108a294a7d4fd923665e059a6eb90b0ab5a337 (patch)
tree4069f097660a988018796bcfb90003aca7577887 /contrib
parentMerge pull request #4333 (diff)
downloadmonero-e5108a294a7d4fd923665e059a6eb90b0ab5a337.tar.xz
Catch more exceptions in dtors
Misc coverity reports
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/misc_language.h3
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 */ }
}
};