mirror of
https://github.com/boostorg/asio.git
synced 2026-02-24 14:22:08 +00:00
Fix memory leak in use_tmp_dh_file().
[SVN r48032]
This commit is contained in:
@@ -309,9 +309,9 @@ public:
|
||||
|
||||
::BIO_free(bio);
|
||||
int result = ::SSL_CTX_set_tmp_dh(impl, dh);
|
||||
::DH_free(dh);
|
||||
if (result != 1)
|
||||
{
|
||||
::DH_free(dh);
|
||||
ec = boost::asio::error::invalid_argument;
|
||||
return ec;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user