Skip to content

Commit 31bcbef

Browse files
committed
Merge pull request flann-lib#285 from tkoeppe/master
Fix deletion in kmeans_index.h
2 parents 00c05de + 9edd985 commit 31bcbef

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)