Preventing atomic-context violations in Rust code with klint
Preventing atomic-context violations in Rust code with klint
Posted Nov 20, 2023 23:22 UTC (Mon) by dvrabel (subscriber, #9500)In reply to: Preventing atomic-context violations in Rust code with klint by NYKevin
Parent article: Preventing atomic-context violations in Rust code with klint
Leaking memory is only non-UB behaviour if your program has access to unlimited memory, otherwise the program will panic at some undefined point in time when it runs out of memory, although I suppose rust claims this behaviour as well-defined since the outcome when it happens is deterministic.