mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-27 10:28:54 +00:00
fix(c++): re-throw original exception rather than copy
Reported by cppcheck Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
parent
7a18795ca5
commit
f3491d62c9
@ -111,13 +111,13 @@ namespace falco
|
||||
m_handled.store(true, std::memory_order_seq_cst);
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
catch (std::exception&)
|
||||
{
|
||||
if (triggered())
|
||||
{
|
||||
m_handled.store(true, std::memory_order_seq_cst);
|
||||
}
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user