#vulnerable code 
                              Country Country(String ip_address) {
    DefaultHttpClient httpclient = new DefaultHttpClient();
    try {
      HttpGet httpget = new HttpGet("https://geoip.maxmind.com/geoip/country/" + ip_address);
     httpget.addHeader("Accept","application/json");
      httpget.addHeader(BasicScheme.authenticate(
      new UsernamePasswordCredentials(user_id,license_key),"UTF-8",false));
      HttpResponse response = httpclient.execute(httpget);
      HttpEntity entity = response.getEntity();
      if (entity != null) {
        InputStream instream = entity.getContent();
        BufferedReader reader = new BufferedReader(
                 new InputStreamReader(instream));
        return new Country(reader.readLine());
      }
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      httpclient.getConnectionManager().shutdown();
    }
    return null;
  } 
                            #location 14 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              Client(String user_id, String license_key) {
    this.user_id = user_id;
    this.license_key = license_key;
  }