Skip to content

Commit

Permalink
Fixed memory leak in flann KMeansIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Apr 13, 2016
1 parent 49b4af1 commit b99d010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/flann/include/opencv2/flann/kmeans_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ class KMeansIndex : public NNIndex<Distance>
computeClustering(node->childs[c],indices+start, end-start, branching, level+1);
start=end;
}

delete[] centers;
}


Expand Down

0 comments on commit b99d010

Please sign in to comment.