Mettle

M0108Use after call-freed pointer

Reported by the compiler as an error or warning.

mettle explain M0108

A pointer is used after being passed to a function that frees it (directly or transitively - ownership summaries are inferred over the whole call graph).

Fix: treat the pointer as consumed by that call; don't touch it afterwards.

Related