Dangling Pointer

Like a business card for a shop that closed. The address is real, but nothing useful is there anymore. Dereference it and you get a use-after-free.

Defensive move: set the pointer to NULL right after free, so a later mistake crashes loudly instead of silently reading garbage.