#vulnerable code 
                                public static void main(String[] args) {
        TransportClient client = null;
        try {
            // on startup
            client = new PreBuiltTransportClient(Settings.EMPTY)
                    .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300))
                    .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300));
            // on shutdown
            client.close();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static void main(String[] args) {
        ElasticsearchUploader esUploader = new ElasticsearchUploader();
        ElasticsearchUploader.logger.info("aaa");
    }