mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Fixed memory leak in flann KMeansIndex
This commit is contained in:
parent
49b4af1e5c
commit
b99d010977
@ -874,6 +874,8 @@ private:
|
||||
computeClustering(node->childs[c],indices+start, end-start, branching, level+1);
|
||||
start=end;
|
||||
}
|
||||
|
||||
delete[] centers;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user