MantisBT - VTK
View Issue Details
0012348VTK(No Category)public2011-07-09 18:562011-08-02 14:06
Ivan Manuylovich 
Kyle Lutz 
highminorhave not tried
closedfixed 
 
 
TBD
incorrect functionality
0012348: A bug in vtkDataSetSurfaceFilter.cxx - memory leak
This issue is related with my previous one with ID 0012288
(memory leaks in vtkDLG when loading PentaHexa.vtk).

The memory leak is concerned with function vtkDataSetSurfaceFilter::InsertPolygonInHash

At the line 1595 of vtkDataSetSurfaceFilter.cxx after comment "That is all we need to do. Hide any tri shared by two or more cells." just only "return" is written and the "tab" memory isn't deallocated.

The following replace is needed at the line #1595.
Was:
return;

Should be:
delete [] tab; // MUST deallocate memory before return
return;
No tags attached.
related to 0012288closed Dave DeMarle Memory leaks in testing vtkDLG application if loaded PentaHexa.vtk file 
Issue History
2011-07-09 18:56Ivan ManuylovichNew Issue
2011-07-11 12:56Kyle LutzRelationship addedrelated to 0012288
2011-07-11 12:56Kyle LutzAssigned To => Kyle Lutz
2011-07-11 12:56Kyle LutzStatusbacklog => todo
2011-07-11 12:57Kyle LutzStatustodo => active development
2011-07-11 13:58Kyle LutzNote Added: 0026989
2011-07-11 13:58Kyle LutzStatusactive development => gatekeeper review
2011-07-31 16:41Ivan ManuylovichNote Added: 0027178
2011-08-01 10:05Utkarsh AyachitStatusgatekeeper review => customer review
2011-08-01 10:12Utkarsh AyachitStatuscustomer review => closed
2011-08-01 10:12Utkarsh AyachitResolutionopen => fixed
2011-08-02 14:06Kyle LutzSource_changeset_attached => VTK master 87705c2f

Notes
(0026989)
Kyle Lutz   
2011-07-11 13:58   
Merge topic '12348-fix-surface-filter-memory-leak' into next

7f3948b Merge topic 'better-support-generic-dataset' into 12348-fix-surface-filter-memory-leak
b5f3147 Merge topic '12023-read-block-names' into 12348-fix-surface-filter-memory-leak
c77d81e Update VTK to bring in topic '12348-fix-surface-filter-memory-leak'


Merge topic '12348-fix-surface-filter-memory-leak' into pv-next

87705c2 Free memory after match in InsertPolygonInHash().
(0027178)
Ivan Manuylovich   
2011-07-31 16:41   
If you are waiting for my note to close the issue then
I confirm the thesis "87705c2 Free memory after match in InsertPolygonInHash()."