Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / index / index.cpp
index 9d6895baea9817af1a7e4c34dafffbce53e131ea..de66ac4bdd3088427fccd5d9a00f0adc5a4a4da9 100644 (file)
@@ -45,7 +45,7 @@ static enum lttng_trace_chunk_status _lttng_index_file_create_from_trace_chunk(
 
        LTTNG_ASSERT(acquired_reference);
 
-       index_file = (lttng_index_file *) zmalloc(sizeof(*index_file));
+       index_file = zmalloc<lttng_index_file>();
        if (!index_file) {
                PERROR("Failed to allocate lttng_index_file");
                chunk_status = LTTNG_TRACE_CHUNK_STATUS_ERROR;
This page took 0.022479 seconds and 4 git commands to generate.