Fix buffer leaks in BinaryMemcacheEncoderTest