gh-83004: Clean up refleak in _io initialisation (#98840)

2 files changed