#fixed code
                                public static GitRepositoryState getGitRepositoryState() throws IOException {
        Properties properties = new Properties();
        try {
            InputStream inputStream = new FileInputStream("config/git.properties");
            BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream));
            properties.load(bf);
        } catch (IOException e) {
            
        }
        GitRepositoryState gitRepositoryState = new GitRepositoryState(properties);
        return gitRepositoryState;
    }
#vulnerable code 
                                public static GitRepositoryState getGitRepositoryState() throws IOException {
        Properties properties = new Properties();
        try {
            properties.load(new FileInputStream("config/git.properties"));
        } catch (IOException e) {
            
        }
        GitRepositoryState gitRepositoryState = new GitRepositoryState(properties);
        return gitRepositoryState;
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK