Memory leak in DistanceTransformTwoDimensionalProblem (Feature #1381)
Description
The variable internalPointsX is not freed in a couple of error cases.
Attached patch should fix the leak.
This bug was found with cppcheck.
Related issues
duplicated by Bug #1659: cppcheck: distancetransform.cpp, memory leak | Cancelled | 2012-03-08 |
History
Updated by Vadim Pisarevsky over 13 years ago
thanks! For some reason I could not apply your patch automatically, so (since manual editing was needed anyway) I just decided to replace arrays with STL vectors.
- Status changed from Open to Done
- (deleted custom field) set to fixed
Updated by Andrey Kamaev almost 13 years ago
- Target version set to 2.4.0