Boost C++ Libraries: Ticket #2174: Missing ::DH_free in boost/asio/ssl/openssl_context_service.hpp https://svn.boost.org/trac10/ticket/2174 <p> There is missed ::DH_free invocation to OpenSSL that cause several memory leaks when setting up a boost::asio::ssl::context. </p> <p> A fix to boost/asio/ssl/openssl_context_service.hpp (trunk version) is proposed here below : </p> <p> 311a312 </p> <blockquote class="citation"> <blockquote> <p> ::DH_free(dh); </p> </blockquote> </blockquote> <p> 314d314 &lt; ::DH_free(dh); </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2174 Trac 1.4.3 chris_kohlhoff Fri, 08 Aug 2008 14:57:11 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2174#comment:1 https://svn.boost.org/trac10/ticket/2174#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/48032" title="Fix memory leak in use_tmp_dh_file(). ">[48032]</a>. </p> Ticket