Sibtay Abbas <sibtay(at)gmail(dot)com> writes:
> in pl_comp.c, plpgsql_build_variable takes a pointer to a PLpgSQL_type
> structure, which is always a malloc'ed instance(since we always use
> plpgsql_build_datatype function).
As of current sources it's palloc'd, and should be released if the
function is ever recompiled, so I see no strong reason to worry.
regards, tom lane