#vulnerable code 
                             public static byte[] loadBytes(String filename) {
		InputStream input = classLoader().getResourceAsStream(filename);

		if (input == null) {
			File file = new File(filename);

			if (file.exists()) {
				try {
					input = new FileInputStream(filename);
				} catch (FileNotFoundException e) {
					throw U.rte(e);
				}
			}
		}

		return input != null ? loadBytes(input) : null;
	} 
                            #location 16 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public static byte[] loadBytes(String filename) {
		InputStream input = null;
		try {
			input = classLoader().getResourceAsStream(filename);

			if (input == null) {
				File file = new File(filename);

				if (file.exists()) {
					try {
						input = new FileInputStream(filename);
					} catch (FileNotFoundException e) {
						throw U.rte(e);
					}
				}
			}

			return input != null ? loadBytes(input) : null;
		} finally {
			close(input, true);
		}
	}