Fix a theoretical memory leak in get_last_url()