From 360c8bf6bd58d1e2c5472001807e1400caae5376 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Tue, 12 Nov 2019 21:54:02 +0100 Subject: [PATCH] exception safe destructor(CID 273246 (#5-1 of 5): Uncaught exception (UNCAUGHT_EXCEPT)) --- contrib/epee/include/syncobj.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/contrib/epee/include/syncobj.h b/contrib/epee/include/syncobj.h index 4f7e0903..6a763506 100644 --- a/contrib/epee/include/syncobj.h +++ b/contrib/epee/include/syncobj.h @@ -607,14 +607,9 @@ namespace epee ~guarded_critical_region_t() { - // TODO(unassigned): because one cannot forward-declare macros, - // the circular dependency created by misc_log_ex will not - // allow us to actually use these substitutions. - //NESTED_TRY_ENTRY(); - + TRY_ENTRY(); unlock(); - - //NESTED_CATCH_ENTRY(__func__); + CATCH_ENTRY(void()); } void unlock()