free and return to NULL when we're done