#vulnerable code 
                             public void testParse() throws ParseException, IOException, Exception {
		// JSONObject parsed = iseParser.parse(getRawMessage().getBytes());
		// assertNotNull(parsed);

		URL log_url = getClass().getClassLoader().getResource("IseSample.log");

		BufferedReader br = new BufferedReader(new FileReader(log_url.getFile()));
		String line = "";
		while ((line = br.readLine()) != null) {
			System.out.println(line);
			JSONObject parsed = iseParser.parse(line.getBytes());
			System.out.println(parsed);

			assertEquals(true, super.validateJsonData(super.getSchemaJsonString(), parsed.toString()));

		}
		br.close();
	} 
                            #location 16 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public void testParse() throws ParseException, IOException, Exception {
        for (String inputString : getInputStrings()) {
            JSONObject parsed = parser.parse(inputString.getBytes());
            assertNotNull(parsed);
        
            System.out.println(parsed);
            JSONParser parser = new JSONParser();

            Map<?, ?> json=null;
            try {
                json = (Map<?, ?>) parser.parse(parsed.toJSONString());
                assertEquals(true, validateJsonData(super.getSchemaJsonString(), json.toString()));
            } catch (ParseException e) {
                e.printStackTrace();
            }
        }
	}