-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Potential resource leak in flann (file not closed) #22426
Copy link
Copy link
Closed
Labels
bugcategory: flannconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcategory: flannconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete