bool acquired_reference = false;
struct lttng_trace_chunk *current_trace_chunk;
- stream = (relay_stream *) zmalloc(sizeof(struct relay_stream));
+ stream = zmalloc<relay_stream>();
if (stream == NULL) {
PERROR("relay stream zmalloc");
goto error_no_alloc;