[No review required] Fix leaking AsChains