Make sure to release the buffer when it's written to the next byte buffer

.. otherwise it will leak.