#fixed code
                                public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/rocketmq-consumer.xml");
        context.registerShutdownHook();
    }
#vulnerable code 
                                public static void main(String[] args) {
        new ClassPathXmlApplicationContext("spring/rocketmq-consumer.xml");
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK