diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index e814f54..fc12ff5 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -243,7 +243,7 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers) lowerBound = palloc_extended(lowerBoundSize, MCXT_ALLOC_HUGE); upperBound = palloc(upperBoundSize); s = palloc(sSize); - halfcdist = palloc(halfcdistSize); + halfcdist = palloc_extended(halfcdistSize, MCXT_ALLOC_HUGE); newcdist = palloc(newcdistSize); newCenters = VectorArrayInit(numCenters, dimensions);