#fixed code
                                public void loadModelFromResources(String modelFilePath, String rangeFilePath) throws IOException {
        InputStreamReader modelISR = new InputStreamReader(SVMClassifier.class.getResourceAsStream(modelFilePath), "UTF-8");
        BufferedReader modelFile = new BufferedReader(modelISR);

        InputStreamReader rangeISR = new InputStreamReader(SVMClassifier.class.getResourceAsStream(rangeFilePath), "UTF-8");
        BufferedReader rangeFile = new BufferedReader(rangeISR);
        loadModelFromFile(modelFile, rangeFile);
    }
#vulnerable code 
                                public void loadModelFromResources(String modelFilePath, String rangeFilePath) throws IOException {
        InputStreamReader modelISR = new InputStreamReader(SVMClassifier.class.getResourceAsStream(modelFilePath));
        BufferedReader modelFile = new BufferedReader(modelISR);

        InputStreamReader rangeISR = new InputStreamReader(SVMClassifier.class.getResourceAsStream(rangeFilePath));
        BufferedReader rangeFile = new BufferedReader(rangeISR);
        loadModelFromFile(modelFile, rangeFile);
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK