BUG: memory leak in json serialization for timestamp with timezone (#66115)