diff --git a/modules/flann/include/opencv2/flann/kmeans_index.h b/modules/flann/include/opencv2/flann/kmeans_index.h index 226fc71f3..98ad0c86e 100644 --- a/modules/flann/include/opencv2/flann/kmeans_index.h +++ b/modules/flann/include/opencv2/flann/kmeans_index.h @@ -874,6 +874,8 @@ private: computeClustering(node->childs[c],indices+start, end-start, branching, level+1); start=end; } + + delete[] centers; }