Skip to content

Commit 9edd985

Browse files
committed
Fix deletion in kmeans_index.h
1 parent c7075bc commit 9edd985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/flann/algorithms/kmeans_index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class KMeansIndex : public NNIndex<Distance>
525525

526526
node->variance = variance;
527527
node->radius = radius;
528-
delete node->pivot;
528+
delete[] node->pivot;
529529
node->pivot = mean;
530530
}
531531

0 commit comments

Comments
 (0)