Fix memory corruption by changing refs to Objects

The memory corruption is caused by temporary Objects which where
binding to references getting destroyed before they were expected
to. This caused the references to point to corrupted memory.
This fix make the temporary Objects be assigned to Objects instead.

Bug: 66968282
Test: run ./system/connectivity/wifilogd/runtests.sh
Change-Id: If7a14326a663df554a5de9a812422e21b888edf6
diff --git a/byte_buffer.h b/byte_buffer.h
index 2fdff62..1d79b6d 100644
--- a/byte_buffer.h
+++ b/byte_buffer.h
@@ -32,7 +32,7 @@
 // memory allocation.
 //
 // Usage could be as follows:
-//     const auto& buffer = ByteBuffer<1024>()
+//     const auto buffer = ByteBuffer<1024>()
 //         .AppendOrDie(header.data(), header.size())
 //         .AppendOrDie(body.data(), body.size());
 //     write(fd, buffer.data(), buffer.size());