Hacker News new | ask | show | jobs
by dns_snek 127 days ago
The diagnostic struct could contain a caller-provided allocator field which the callee can use, and a deinit() function on the diagnostic struct which frees everything.