[Boost-bugs] [Boost C++ Libraries] #10795: Include asio/ssl/context.hpp reports two leaks on Windows

Subject: [Boost-bugs] [Boost C++ Libraries] #10795: Include asio/ssl/context.hpp reports two leaks on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-16 02:48:38


#10795: Include asio/ssl/context.hpp reports two leaks on Windows
-------------------------------------------+----------------------------
 Reporter: Vinnie Falco <vinnie.falco@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
-------------------------------------------+----------------------------
 Simply including the header file <boost/asio/ssl/context.hpp> causes the
 Microsoft Visual Studio debug runtime (MSVCRTD library) to report two 32
 byte leaks on exit. It is not clear if these are from asio or from
 OpenSSL. This sample program compiled for 64-bit Windows using Visual
 Studio 2013 demonstrates the problem:

 {{{
 #include <boost/asio/ssl/context.hpp>
 #include <crtdbg.h>
 int main()
 {
     int flags = _CrtSetDbgFlag (_CRTDBG_REPORT_FLAG);
     flags |= _CRTDBG_LEAK_CHECK_DF;
     _CrtSetDbgFlag (flags);
 }
 }}}

 This report is shown on exit, when main returns:

 {{{
 Detected memory leaks!
 Dumping objects ->
 {716} normal block at 0x00000000003953F0, 32 bytes long.
  Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 {715} normal block at 0x00000000003952D0, 32 bytes long.
  Data: < S9 > 00 00 00 00 CD CD CD CD F0 53 39 00 00 00 00 00
 Object dump complete.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10795>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC