mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-07 14:37:32 +01:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -168,9 +168,15 @@ Context::Context(
|
||||
|
||||
Context::~Context()
|
||||
{
|
||||
SSL_CTX_free(_pSSLContext);
|
||||
|
||||
Poco::Crypto::OpenSSLInitializer::uninitialize();
|
||||
try
|
||||
{
|
||||
SSL_CTX_free(_pSSLContext);
|
||||
Poco::Crypto::OpenSSLInitializer::uninitialize();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user