Finding invisible use-after-free bugs in the PostgreSQL planner

A little fuss on dangling pointers