#vulnerable code 
                                @Test
    public void testConnectionManager() {
        // 初始化
        TrackerConnectionManager manager = new TrackerConnectionManager(createPool());
        manager.setTrackerList(trackerIpList);
        manager.initTracker();
        List<GroupState> list = null;
        // 第一次执行
        try {
            // 连接失败
            list = manager.executeFdfsTrackerCmd(new TrackerListGroupsCommand());
            fail("No exception thrown.");
        } catch (Exception e) {
            assertTrue(e instanceof FdfsConnectException);
        }

        // 第二次执行
        try {
            // 连接失败
            list = manager.executeFdfsTrackerCmd(new TrackerListGroupsCommand());
            fail("No exception thrown.");
        } catch (Exception e) {
            assertTrue(e instanceof FdfsConnectException);
        }

        LOGGER.debug("执行结果{}", list);
    } 
                            #location 15 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testConnectionManager() {
        // 初始化
        TrackerConnectionManager manager = crtInvalidateIpListManager();
        List<GroupState> list = null;
        // 第一次执行
        try {
            // 连接失败
            list = manager.executeFdfsTrackerCmd(new TrackerListGroupsCommand());
            fail("No exception thrown.");
        } catch (Exception e) {
            assertTrue(e instanceof FdfsConnectException);
        }

        // 第二次执行
        try {
            // 连接失败
            list = manager.executeFdfsTrackerCmd(new TrackerListGroupsCommand());
            fail("No exception thrown.");
        } catch (Exception e) {
            assertTrue(e instanceof FdfsConnectException);
        }

        assertNull(list);
    }