Ticket #4346 (closed Bugs: fixed)

Opened 6 years ago

Last modified 5 years ago

Boost pool's not comaptible with Microsoft memory leak detection

Reported by: Arkadiy Shapkin <arkadiy_s@…> Owned by: cnewbold
Milestone: Boost 1.43.0 Component: pool
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:


Boost pool classes not compatible with Microsoft memory leak detection.

You can include that lines in code: #ifdef _DEBUG


#endif #include <crtdbg.h> #include "boost\pool\pool_alloc.hpp"

We can solve problem using two ways:

  1. Rename all malloc & free methods
  2. Add #pragma push_macro, #undef and #pragma pop_macro lines. Also add alternative names for malloc and free methods


pool.patch Download (1.6 KB) - added by Arkadiy Shapkin <arkadiy_s@…> 6 years ago.

Change History

Changed 6 years ago by Arkadiy Shapkin <arkadiy_s@…>

comment:1 Changed 6 years ago by steven_watanabe

  • Owner set to cnewbold
  • Component changed from None to pool

comment:2 Changed 6 years ago by steven_watanabe

  • Status changed from new to closed
  • Resolution set to fixed

(In [63009]) Protect Boost.Pool from evil #defines of malloc and free. Fixes #4346.

comment:3 Changed 5 years ago by marshall

(In [67958]) Merging fixes to release; Fixes #2696; Refs #4346; Refs #2941; Refs #386


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.