Boost または Visual Studio 2010 でリークを見つけ続けています。このような単純なプログラムがリークします。
#include <boost\regex.hpp>
int main()
{
_CrtMemState state;
_CrtMemCheckpoint(&state);
{
boost::regex my_filter;
my_filter.set_expression("filter");
}
_CrtMemDumpAllObjectsSince(&state);
return 0;
}
そして戻る
Dumping objects ->
{174} normal block at 0x00195C28, 1024 bytes long.
Data: < 8\ > 00 00 00 00 38 5C 19 00 00 00 00 00 00 CD CD CD
{172} normal block at 0x00195B90, 16 bytes long.
Data: < < pO > B8 D3 3C 01 01 00 00 00 01 00 00 00 70 4F 19 00
{171} normal block at 0x00195B48, 8 bytes long.
Data: < P > BC 50 19 00 00 00 00 00
{170} normal block at 0x00195AF8, 16 bytes long.
Data: < < XQ > E8 D3 3C 01 01 00 00 00 01 00 00 00 58 51 19 00
{169} normal block at 0x00195A98, 32 bytes long.
Data: < R R R > 80 52 19 00 80 52 19 00 80 52 19 00 09 0C 00 00
{168} normal block at 0x00195A48, 20 bytes long.
Data: < Q Q R Y > E8 51 19 00 E8 51 19 00 E0 52 19 00 F8 59 19 00
{167} normal block at 0x001959F8, 16 bytes long.
Data: < 2= R > 94 32 3D 01 02 00 00 00 01 00 00 00 E0 52 19 00
{158} normal block at 0x00195968, 80 bytes long.
Data: <hY hY hY > 68 59 19 00 68 59 19 00 68 59 19 00 CD CD CD CD
{157} normal block at 0x00195920, 8 bytes long.
Data: < W > 0C 57 19 00 00 00 00 00
{156} normal block at 0x001958B0, 52 bytes long.
Data: < X X X > B0 58 19 00 B0 58 19 00 B0 58 19 00 CD CD CD CD
{155} normal block at 0x00195868, 8 bytes long.
Data: < V > F8 56 19 00 00 00 00 00
{154} normal block at 0x001957F8, 52 bytes long.
Data: < W W W > F8 57 19 00 F8 57 19 00 F8 57 19 00 CD CD CD CD
{153} normal block at 0x001957B0, 8 bytes long.
Data: < V > E4 56 19 00 00 00 00 00
{150} normal block at 0x00195768, 8 bytes long.
Data: <`3> > 60 33 3E 01 00 00 00 00
{149} normal block at 0x001952E0, 1096 bytes long.
Data: < > 09 0C 00 00 00 00 00 00 00 00 00 00 00 00 1A 00
{148} normal block at 0x00195280, 32 bytes long.
Data: < Z Z Z > 98 5A 19 00 98 5A 19 00 98 5A 19 00 CD CD CD CD
{147} normal block at 0x00195238, 8 bytes long.
Data: < 3> > 14 33 3E 01 00 00 00 00
{146} normal block at 0x001951E8, 20 bytes long.
Data: <HZ HZ > 48 5A 19 00 48 5A 19 00 CD CD CD CD CD CD CD CD
{145} normal block at 0x001951A0, 8 bytes long.
Data: < 3> Z > 04 33 3E 01 A8 5A 19 00
{144} normal block at 0x00195158, 8 bytes long.
Data: < R Y > E0 52 19 00 F8 59 19 00
{143} normal block at 0x00195110, 8 bytes long.
Data: <pO > 70 4F 19 00 00 00 00 00
{142} normal block at 0x00194F70, 356 bytes long.
Data: < Q > 10 51 19 00 00 00 00 00 00 00 00 00 00 00 00 00
Object dump complete.
これはブースト 1.47 と 1.50 を使用して見つけました。Visual Studio 2010 SP1 を使用しています。VS2010 にあるようです。ホットフィックスを見つけようとしましたが、成功しませんでした
ヒントをありがとう!