X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Findex%2Findex.cpp;h=de66ac4bdd3088427fccd5d9a00f0adc5a4a4da9;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=9d6895baea9817af1a7e4c34dafffbce53e131ea;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/common/index/index.cpp b/src/common/index/index.cpp index 9d6895bae..de66ac4bd 100644 --- a/src/common/index/index.cpp +++ b/src/common/index/index.cpp @@ -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(); if (!index_file) { PERROR("Failed to allocate lttng_index_file"); chunk_status = LTTNG_TRACE_CHUNK_STATUS_ERROR;