Fix iostream leak.