#vulnerable code 
                             public final byte[] deflate(byte bytes[]) throws IOException
	{
		ByteArrayInputStream in = new ByteArrayInputStream(bytes);
		DeflaterInputStream zIn = new DeflaterInputStream(in);
		return getStreamBytes(zIn);
	} 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public final byte[] deflate(byte bytes[]) throws IOException
	{
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		DeflaterOutputStream dos = new DeflaterOutputStream(baos);
		dos.write(bytes);
		dos.flush();
		return baos.toByteArray();
	}