Skip to content

Commit

Permalink
do not set alloc number if 1
Browse files Browse the repository at this point in the history
[SVN r85648]
  • Loading branch information
rogeeff committed Sep 11, 2013
1 parent 2d57068 commit d906a95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/boost/test/impl/debug.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,9 @@ break_memory_alloc( long mem_alloc_order_num )
unit_test::ut_detail::ignore_unused_variable_warning( mem_alloc_order_num );

#ifdef BOOST_MS_CRT_BASED_DEBUG
_CrtSetBreakAlloc( mem_alloc_order_num );
// only set the value if one was supplied (do not use default used by UTF just as a indicator to enable leak detection)
if( mem_alloc_order_num > 1 )
_CrtSetBreakAlloc( mem_alloc_order_num );
#endif // BOOST_MS_CRT_BASED_DEBUG
}

Expand Down

0 comments on commit d906a95

Please sign in to comment.