jrgemignani commented on code in PR #2066:
URL: https://github.com/apache/age/pull/2066#discussion_r1729476467
##########
src/backend/utils/adt/agtype.c:
##########
@@ -3090,18 +3152,27 @@ Datum agtype_to_text(PG_FUNCTION_ARGS)
/* Return null if arg_agt is null. This covers SQL and Agtype NULLS */
if (arg_agt == NULL)
+ {
PG_RETURN_NULL();
+ }
/* check that we have a scalar value */
if (!AGT_ROOT_IS_SCALAR(arg_agt))
+ {
+ PG_FREE_IF_COPY(arg_agt, 0);
Review Comment:
Good catch, I thought that I removed all those. It is unnecessary.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]