pgvector.git / summary / log / commit / refs

commit    0134debfb8c3a1ca03b49cf208b4b7bc2253e7b9
Author:   Andrew Kane <andrew@ankane.org>
Date:     Fri Jun 09 04:23:03 2023 +0000

    Free datums


src/vector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector.c b/src/vector.c index 153140a3..a61a0d4e 100644 --- a/src/vector.c +++ b/src/vector.c @@ -477,6 +477,8 @@ vector_to_float4(PG_FUNCTION_ARGS) /* Use TYPALIGN_INT for float4 */ result = construct_array(d, vec->dim, FLOAT4OID, sizeof(float4), true, TYPALIGN_INT); + pfree(d); + PG_RETURN_POINTER(result); } [parent: 2f93781c3b5d]