13 Dec
2003
13 Dec
'03
8:08 p.m.
Hello,
I have wrote simple programm:
using namespace boost;
shared_ptr<int> a(new int(10));
shared_ptr<int> b;
b=a;
a.reset(new int(20));
std::cout<<"a=="<<*a<<" b=="<<*b;
return 0;
Checking this programm with DevPartner BoundsChecker, i found memory
leak:
Type Quantity Total (bytes) Allocation Location Sequence
Leak exiting program 1 84 setlocale - [setlocal.c, line 547 (Boostt.exe)] 9
Memory Leak Exiting Program: Address 0x00E44F88 (84) allocated by _malloc_dbg.