Yes - you need to build a dataref... The realloc line here is actually to ensure the buffer is the same length as the data... So, this should probably be:
```
/* UNCHECKED */ MCDataCreateWithBytesAndRelease((byte_t *)realloc(t_data, t_length), t_length, r_data);
```