Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the obvous memory leaks shown by cppcheck #4858

Closed
martyngigg opened this issue Oct 26, 2011 · 1 comment
Closed

Fix the obvous memory leaks shown by cppcheck #4858

martyngigg opened this issue Oct 26, 2011 · 1 comment
Assignees
Milestone

Comments

@martyngigg
Copy link
Member

When setting up the Jenkins cppcheck it gave some very obvious memory leaks

Code/Mantid/Framework/CurveFitting/src/Convolution.cpp  86  memleak error   Memory leak: xr
Code/Mantid/Framework/DataHandling/src/SaveToSNSHistogramNexus.cpp  594 memleak error   Memory leak: tof_data
Code/Mantid/MantidPlot/src/FFT.cpp  101 memleak error   Memory leak: amp
Code/Mantid/MantidPlot/src/Interpolation.cpp    182 memleak error   Memory leak: ytemp
Code/Mantid/MantidPlot/src/Interpolation.cpp    182 memleak error   Memory leak: xtemp
Code/Mantid/Vates/VatesAPI/src/vtkThresholdingHexahedronFactory.cpp 284 memleak error   Memory leak: pointIDs
Code/Mantid/Vates/VatesAPI/src/vtkThresholdingHexahedronFactory.cpp 284 memleak error   Memory leak: voxelShown
Code/Mantid/Vates/VatesAPI/src/vtkThresholdingHexahedronFactory.cpp 284 memleak error   Memory leak: pointNeeded
Code/Mantid/Vates/VatesAPI/src/vtkThresholdingQuadFactory.cpp   200 memleak error   Memory leak: pointIDs
Code/Mantid/Vates/VatesAPI/src/vtkThresholdingQuadFactory.cpp   200 memleak error   Memory leak: voxelShown
Code/Mantid/Vates/VatesAPI/src/vtkThresholdingQuadFactory.cpp   200 memleak error   Memory leak: pointNeeded
Code/Mantid/Framework/CurveFitting/src/Convolution.cpp  196 mismatchAllocDealloc    error   Mismatching allocation and deallocation: tmp
Code/Mantid/Framework/DataHandling/src/SaveISISNexus.cpp    363 mismatchAllocDealloc    error   Mismatching allocation and deallocation: buff

They are easy to fix as cppcheck gives the exact line where the leak happens.

@martyngigg
Copy link
Member Author

This issue was originally trac ticket 4011

@martyngigg martyngigg self-assigned this Jun 3, 2015
@martyngigg martyngigg added this to the Release 2.0 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant