#vulnerable code 
                                public static VanillaCpuLayout fromProperties(String fileName) throws IOException {
        return fromProperties(new FileInputStream(fileName));
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static VanillaCpuLayout fromProperties(String fileName) throws IOException {
        return fromProperties(openFile(fileName));
    }