fix: avoid use-after-free when re-entering ostream_redirect (#6205)
2 files changed