Resource leak in lsvmparser.cpp (Feature #1390)


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 XML file that is loaded in LSVMparser() is never closed.

I've attached a patch that should fix the problem.

This bug was found with cppcheck 1.50.


LSVMParser_ResourceLeakFix.diff (370 Bytes) msrtis -, 2011-09-23 06:51 am


Related issues

duplicated by Bug #1662: cppcheck: lsvmparser.cpp, missing fclose() Cancelled 2012-03-08

Associated revisions

Revision 1c738820
Added by Vadim Pisarevsky over 13 years ago

fixed resource leak in lsvmparser (ticket #1390)

History

Updated by Vadim Pisarevsky over 13 years ago

thanks! your patch was applied in r6784.

  • 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