Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / consumer / consumer-stream.cpp
index f57e37ab81379027daf318acc58d2b90b710b41d..c22c7e5f3390f74576bb22fa0bfe10e506ed9a51 100644 (file)
@@ -654,7 +654,7 @@ struct lttng_consumer_stream *consumer_stream_create(
        int ret;
        struct lttng_consumer_stream *stream;
 
-       stream = (lttng_consumer_stream *) zmalloc(sizeof(*stream));
+       stream = zmalloc<lttng_consumer_stream>();
        if (stream == NULL) {
                PERROR("malloc struct lttng_consumer_stream");
                ret = -ENOMEM;
This page took 0.023224 seconds and 4 git commands to generate.