#vulnerable code 
                             public long getLength() {
		try {
			JarFile jarFile = new JarFile(file);
			return jarFile.getEntry(getName()).getSize();
		} catch (IOException e) {
			return super.getLength();
		}
	} 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public long getLength() {
		try {
			JarFile jarFile = new JarFile(file);
			try {
				return jarFile.getEntry(getName()).getSize();
			} finally {
				jarFile.close();
			}
		} catch (IOException e) {
			return super.getLength();
		}
	}