2
0
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:
Christopher Kohlhoff
2008-08-08 14:48:24 +00:00
parent 71d47ca98c
commit 0b693c585c

View File

@@ -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;
}