MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013908 | VTK | (No Category) | public | 2013-02-26 17:59 | 2013-04-05 18:56 |
| Reporter | Micah Chambers | ||||
| Assigned To | Berk Geveci | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | TBD | ||||
| Type | performance | ||||
| Summary | 0013908: Memory Leak in the following code | ||||
| Description | vtkDataReader.cxx has a memory leak here: 'decoded' is allocated but never deleted. Line 1749 of the git version. else { // read in newline vtkStdString s; my_getline(*(this->IS), s); for (int i=0; i<numTuples; i++) { for (int j=0; j<numComp; j++) { my_getline(*(this->IS), s); int length = static_cast<int>(s.length()); char* decoded = new char[length + 1]; int decodedLength = this->DecodeString(decoded, s.c_str()); vtkStdString decodedStr(decoded, decodedLength); ((vtkStringArray*)array)->InsertNextValue(decodedStr); } } } } | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/9400/vtkDataReader.patch https://www.vtk.org/Bug/file/9401/testcorr.vtk | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-02-26 17:59 | Micah Chambers | New Issue | |||
| 2013-02-26 18:06 | Jean-Christophe Fillion-Robin | Note Added: 0030388 | |||
| 2013-02-26 18:16 | Micah Chambers | File Added: vtkDataReader.patch | |||
| 2013-02-26 18:16 | Micah Chambers | Note Added: 0030389 | |||
| 2013-02-26 18:28 | Micah Chambers | File Added: testcorr.vtk | |||
| 2013-02-26 18:28 | Micah Chambers | Note Added: 0030390 | |||
| 2013-03-02 20:21 | Berk Geveci | Assigned To | => Berk Geveci | ||
| 2013-03-02 20:21 | Berk Geveci | Status | backlog => tabled | ||
| 2013-03-02 20:22 | Berk Geveci | Note Added: 0030398 | |||
| 2013-03-02 20:22 | Berk Geveci | Status | tabled => customer review | ||
| 2013-03-02 20:22 | Berk Geveci | Resolution | open => fixed | ||
| 2013-04-05 18:56 | Berk Geveci | Status | customer review => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||