Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-08-08 10:48:25


Author: chris_kohlhoff
Date: 2008-08-08 10:48:24 EDT (Fri, 08 Aug 2008)
New Revision: 48032
URL: http://svn.boost.org/trac/boost/changeset/48032

Log:
Fix memory leak in use_tmp_dh_file().

Text files modified:
   trunk/boost/asio/ssl/detail/openssl_context_service.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/ssl/detail/openssl_context_service.hpp
==============================================================================
--- trunk/boost/asio/ssl/detail/openssl_context_service.hpp (original)
+++ trunk/boost/asio/ssl/detail/openssl_context_service.hpp 2008-08-08 10:48:24 EDT (Fri, 08 Aug 2008)
@@ -309,9 +309,9 @@
 
     ::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;
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk