msgpack-c
msgpack-c copied to clipboard
array_ref allocates memory when creating object with zone
msgpack::type::array_ref is a kind of reference type as msgpack::type::raw_ref. It shouldn't allocate memory.
However, it allocates memory from zone.
https://github.com/msgpack/msgpack-c/blob/master/include/msgpack/v1/adaptor/array_ref.hpp#L256
It should be similar to raw_ref.
https://github.com/msgpack/msgpack-c/blob/master/include/msgpack/v1/adaptor/raw.hpp#L83