set to NULL after freeing