Don't try to free NULL.