The buffer is allocated here https://github.com/Shopify/sysv_mq/blob/expose_bytearray/mq.go#L64.
It gets reused for all the operations on the queue. As far as I can see, it never gets freed. Is that right @Sirupsen ?