url.c: fix parse_login_details() OOM handling