#vulnerable code 
                                private static void main(Config config) throws IOException {
        MarketData marketData = marketData(config);

        MarketReportServer marketReport = marketReport(config);

        List<String> instruments = config.getStringList("instruments");

        MatchingEngine engine = new MatchingEngine(instruments, marketData, marketReport);

        OrderEntryServer orderEntry = orderEntry(config, engine);

        marketData.version();

        new Events(marketData, marketReport, orderEntry).run();
    } 
                            #location 14 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                private static void main(Config config) throws IOException {
        MarketData marketData = marketData(config);

        MarketReporting marketReporting = marketReporting(config);

        List<String> instruments = config.getStringList("instruments");

        MatchingEngine engine = new MatchingEngine(instruments, marketData, marketReporting);

        OrderEntryServer orderEntry = orderEntry(config, engine);

        marketData.version();

        new Events(marketData, marketReporting, orderEntry).run();
    }