_cleanup_ needs a cleanup.

Make sure that these are inline, which prevents a compile
-Wunused warning. Also don't return if (!ptr), since we
don't care about doing a free(NULL) and this is shorter.
Small indent fix.