mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-31 06:10:45 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user