mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-05 20:20:59 +08:00
Fixed invalid memory alloc request size error - fixes #43
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
VectorArray
|
||||
VectorArrayInit(int maxlen, int dimensions)
|
||||
{
|
||||
VectorArray res = palloc0(VECTOR_ARRAY_SIZE(maxlen, dimensions));
|
||||
VectorArray res = palloc_extended(VECTOR_ARRAY_SIZE(maxlen, dimensions), MCXT_ALLOC_ZERO | MCXT_ALLOC_HUGE);
|
||||
|
||||
res->length = 0;
|
||||
res->maxlen = maxlen;
|
||||
|
||||
Reference in New Issue
Block a user