R
Rajwarya
Hi ppl,
I am trying to run a code on SUN OS 5.8 and using Sun WorkShop 6
update 2 C++ 5.3. The problem is that the code is leaking memory in
strstreambuf. We are using ostrstream with rdbuf()->freeze(0) but
still its bleading. I am pasting the purify output below. Please let
me know how to get rid of this.
Also we are using latest patch release for libCstd.so.1 i.e Sun C++
5.6 Patch 108434-17 DEV
MLK: 1430016 bytes leaked in 11172 blocks
This memory was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv___1 [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
int std::strstreambuf:verflow(int) [libCstd.so.1]
long std::strstreambuf::xsputn(const char*,long)
[libCstd.so.1]
Block of 128 bytes (11172 times); last block at 0x1675f1d8
MLK: 633700 bytes leaked in 7034 blocks
MLK: 20480 bytes leaked in 160 blocks
This memory was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv___1 [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
int std::strstreambuf:verflow(int) [libCstd.so.1]
Thanks
Rajat
I am trying to run a code on SUN OS 5.8 and using Sun WorkShop 6
update 2 C++ 5.3. The problem is that the code is leaking memory in
strstreambuf. We are using ostrstream with rdbuf()->freeze(0) but
still its bleading. I am pasting the purify output below. Please let
me know how to get rid of this.
Also we are using latest patch release for libCstd.so.1 i.e Sun C++
5.6 Patch 108434-17 DEV
MLK: 1430016 bytes leaked in 11172 blocks
This memory was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv___1 [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
int std::strstreambuf:verflow(int) [libCstd.so.1]
long std::strstreambuf::xsputn(const char*,long)
[libCstd.so.1]
Block of 128 bytes (11172 times); last block at 0x1675f1d8
MLK: 633700 bytes leaked in 7034 blocks
MLK: 20480 bytes leaked in 160 blocks
This memory was allocated from:
malloc [rtlib.o]
c2n6Fi_Pv___1 [libCrun.so.1]
void*operator new(unsigned) [rtlib.o]
void*operator new[](unsigned) [rtlib.o]
int std::strstreambuf:verflow(int) [libCstd.so.1]
Block of 128 bytes (160 times); last block at 0x1675f100void __rwstd::digit_writer said::ut_digits(char) [libCstd.so.1]
Thanks
Rajat