Skip to content

Potential resource leak in flann (file not closed) #22426

@ilikesearch

Description

@ilikesearch

There is a potential resource leak in function Index::load_(const String& filename) (source file "modules/flann/src/miniflann.cpp")

Statement ::cvflann::IndexHeader header = ::cvflann::load_header(fin) could throw an "Invalid index file" exception, in this case, the file fin is not closed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions