wininet: Fix memory leak by not calling get_cookie_header twice.