mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Static destruction order is not well defined, so it was possible for outs() or errs() return value to be destroyed even while other code was running, resulting in a crash. Instead dynamically allocate the static so the destructor never runs. While this technically leaks, valgrind generally supresses such leaks as the data is still "reachable" from the static pointer.