Makes sure to `free` a pointer we own

Fixes #18