View Issue Details

IDProjectCategoryView StatusLast Update
0005663Open CASCADEOCCT:Foundation Classespublic2014-04-28 12:11
ReporteragvAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionwon't fix 
OSAll 
Fixed in Version6.4.0 
Summary0005663: Memory leak in Standard_SStream
DescriptionMacro GetSString in Standard_SStream.hxx does not unfreeze the buffer and this
effectively leads to memory leak (see the docs on Visual C++ and Sun Workshop).
Two possible solutions:

1) Macro GetSString is converted to inline function and there is added the code:
"SStream.rdbuf() -> freeze(0);" Then the internal buffer of SStream will be
automatically released when the SStream object is destroyed.

2) Alternative to (1): insert (wherever relevant) the calls "freeze(0)" when
Standard_SStream is constructed and used. Particularly it is necessary to
correct the files:
 - XmlDrivers_DocumentStorageDriver.cxx,
 - XmlDrivers_DocumentRetrievalDriver.cxx
TagsNo tags attached.
Test case number

Relationships

related to 0024792 closedapn Remove unused hacks for compilers without STL 
related to 0021758 closedabv Dump of "maxtolerance" command contains unexpected symbols. 

Activities

kgv

2014-04-25 20:31

developer   ~0029088

It seems this issue is no more relevant, consider closing bug.

abv

2014-04-28 12:11

manager   ~0029091

Macro GetSStream() has been removed in OCCT 6.4.0, see 0021758

Issue History

Date Modified Username Field Change
2004-09-30 15:58 abv CC => abv
2004-10-01 12:35 bugmaster Assigned To bugmaster => agv
2004-10-01 12:35 bugmaster Status new => assigned
2011-08-02 11:23 bugmaster Category OCCT:FDC => OCCT:Foundation Classes
2014-04-25 20:28 kgv Relationship added related to 0024792
2014-04-25 20:31 kgv Note Added: 0029088
2014-04-25 20:31 kgv Assigned To agv => bugmaster
2014-04-25 20:31 kgv Status assigned => feedback
2014-04-25 20:31 kgv Resolution open => won't fix
2014-04-25 20:31 kgv Fixed in Version EMPTY =>
2014-04-25 20:31 kgv Description Updated
2014-04-28 11:53 abv Target Version => 6.7.1
2014-04-28 11:56 bugmaster Status feedback => closed
2014-04-28 12:11 abv Note Added: 0029091
2014-04-28 12:11 abv Fixed in Version => 6.4.0
2014-04-28 12:11 abv Target Version 6.7.1 =>
2014-04-28 12:11 abv Relationship added related to 0021758