#vulnerable code 
                              private Class<?> loadTestClassWithDistinctClassLoader() throws Exception {
    URL[] classpath = {temp.getRoot().toURI().toURL()};
    URLClassLoader loader = new URLClassLoader(classpath);
    return loader.loadClass(CLASS_NAME);
  } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              private Class<?> loadTestClassWithDistinctClassLoader() throws Exception {
    URL[] classpath = {temp.getRoot().toURI().toURL()};
    URLClassLoader loader = new URLClassLoader(classpath);
    Class<?> clazz = loader.loadClass(CLASS_NAME);
    loader.close();
    return clazz;
  }