[vtk-developers] [VTK 0012348]: A bug in vtkDataSetSurfaceFilter.cxx - memory leak

Mantis Bug Tracker mantis at public.kitware.com
Sat Jul 9 18:56:37 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12348 
====================================================================== 
Reported By:                Ivan Manuylovich
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12348
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   high
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
====================================================================== 
Date Submitted:             2011-07-09 18:56 EDT
Last Modified:              2011-07-09 18:56 EDT
====================================================================== 
Summary:                    A bug in vtkDataSetSurfaceFilter.cxx - memory leak
Description: 
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 http://vtk.org/Bug/view.php?id=1595.
Was: 
return;

Should be:
delete [] tab;  // MUST deallocate memory before return
return;
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-09 18:56 Ivan ManuylovichNew Issue                                    
======================================================================




More information about the vtk-developers mailing list