fixup! Added pong

This commit is contained in:
2025-12-18 11:03:42 +01:00
parent ba76f5a8a6
commit 4ed78e3a7d

View File

@@ -51,7 +51,7 @@ redirect_to_log(std::ostream &os)
{
// The basic_ios interface expectes a raw pointer...
auto buf = new Log_Buffer<char>(256);
auto old_buf = os.rdbuf(buf);
// I guess we should delete this here?
delete old_buf;
os.rdbuf(buf);
// We should not free the old buffer because it has not been allocated
// dynamically.
}