mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Fixed alloc [skip ci]
This commit is contained in:
@@ -356,7 +356,7 @@ ivfflatbeginscan(Relation index, int nkeys, int norderbys)
|
||||
so->maxItems = 1024;
|
||||
so->itemCount = 0;
|
||||
so->itemQueue = pairingheap_allocate(CompareItems, scan);
|
||||
so->items = palloc(sizeof(IvfflatScanItem) * so->maxItems + 1);
|
||||
so->items = palloc(sizeof(IvfflatScanItem) * (so->maxItems + 1));
|
||||
so->sortedItems = palloc(sizeof(IvfflatScanItem *) * so->maxItems);
|
||||
|
||||
so->sortstate = NULL;
|
||||
|
||||
Reference in New Issue
Block a user