Free datums

This commit is contained in:
Andrew Kane
2023-06-08 21:23:03 -07:00
parent 2f93781c3b
commit 0134debfb8

View File

@@ -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);
}