#vulnerable code 
                                private byte[] passthrough(byte[] input) throws IOException {
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        OutputStream sut = new AdbFilterOutputStream(output);
        sut.write(input);
        sut.flush();
        return output.toByteArray();
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                private byte[] passthrough(byte[] input) throws IOException {
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        OutputStream sut = new AdbFilterOutputStream(output);
        try {
	        sut.write(input);
	        sut.flush();
        } finally {
        	sut.close();
        }
        return output.toByteArray();
    }