Memory leak in DistanceTransformTwoDimensionalProblem (Feature #1381)


Added by msrtis - over 13 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:objdetect
Target version:2.4.0
Difficulty: Pull request:

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.


DistanceTransformTwoDimensionalProblem_FixMemLeak.diff (1.2 kB) msrtis -, 2011-09-21 07:50 am


Related issues

duplicated by Bug #1659: cppcheck: distancetransform.cpp, memory leak Cancelled 2012-03-08

Associated revisions

Revision 86882e5d
Added by Vadim Pisarevsky over 13 years ago

fixed bug #1381

Revision 4ee5599d
Added by Roman Donchenko over 11 years ago

Merge pull request #1381 from 23pointsNorth:master

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

Also available in: Atom PDF