Potential for memory leak in matching.cpp (Patch #1391)


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


Status:Cancelled Start date:
Priority:Low Due date:
Assignee:Marina Kolpakova % Done:

0%

Category:objdetect
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

There is the potential for a memory leak in getFFTImageFilterObject() if the implementation of allocFFTImage() ever changes.

The attached patch should remove the possibility that a memory leak could occur.

This potential bug was found with cppcheck 1.50.


getFFTImageFilterObject_MemoryLeakFix.diff (927 Bytes) msrtis -, 2011-09-23 07:03 am


Related issues

duplicates Bug #1663: cppcheck: objdetect/src/matching.cpp, memory leaks Done 2012-03-08

History

Updated by Kirill Kornyakov about 13 years ago

  • Tracker changed from Feature to Patch

Updated by Marina Kolpakova almost 13 years ago

Duplicate of #1663

  • Status changed from Open to Cancelled
  • Target version set to 2.4.0
  • Assignee changed from Vadim Pisarevsky to Marina Kolpakova

Also available in: Atom PDF