From 0134debfb8c3a1ca03b49cf208b4b7bc2253e7b9 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 8 Jun 2023 21:23:03 -0700 Subject: [PATCH] Free datums --- src/vector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vector.c b/src/vector.c index 153140a..a61a0d4 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); }