Hi,
I just noticed that get_default_partition_oid() tries to release thetuple even if it isn't valid.Trivial patch attached.