#vulnerable code 
                             @Test
	public void newConnectionManager() throws Exception {
		HttpClientConnectionManager connectionManager = new DefaultApacheHttpClientConnectionManagerFactory()
				.newConnectionManager(false, 2, 6);
		then(((PoolingHttpClientConnectionManager) connectionManager)
				.getDefaultMaxPerRoute()).isEqualTo(6);
		then(((PoolingHttpClientConnectionManager) connectionManager).getMaxTotal())
				.isEqualTo(2);
		Object pool = getField(((PoolingHttpClientConnectionManager) connectionManager),
				"pool");
		then((Long) getField(pool, "timeToLive")).isEqualTo(new Long(-1));
		TimeUnit timeUnit = getField(pool, "tunit");
		then(timeUnit).isEqualTo(TimeUnit.MILLISECONDS);
	} 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void newConnectionManager() {
		HttpClientConnectionManager connectionManager = new DefaultApacheHttpClientConnectionManagerFactory()
				.newConnectionManager(false, 2, 6);
		then(((PoolingHttpClientConnectionManager) connectionManager)
				.getDefaultMaxPerRoute()).isEqualTo(6);
		then(((PoolingHttpClientConnectionManager) connectionManager).getMaxTotal())
				.isEqualTo(2);
		Object pool = getField((connectionManager), "pool");
		then((Long) getField(pool, "timeToLive")).isEqualTo(new Long(-1));
		TimeUnit timeUnit = getField(pool, "timeUnit");
		then(timeUnit).isEqualTo(TimeUnit.MILLISECONDS);
	}