X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fctf-trace.cpp;fp=src%2Fbin%2Flttng-relayd%2Fctf-trace.cpp;h=cad67b78e2517296f06e3610b2d7b3d7e25d2ce2;hp=4ee745a10c9102b42e01f32a6e16ffbf699a12cd;hb=64803277bbdbe0a943360d918298a48157d9da55;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491 diff --git a/src/bin/lttng-relayd/ctf-trace.cpp b/src/bin/lttng-relayd/ctf-trace.cpp index 4ee745a10..cad67b78e 100644 --- a/src/bin/lttng-relayd/ctf-trace.cpp +++ b/src/bin/lttng-relayd/ctf-trace.cpp @@ -97,7 +97,7 @@ static struct ctf_trace *ctf_trace_create(struct relay_session *session, { struct ctf_trace *trace; - trace = (ctf_trace *) zmalloc(sizeof(*trace)); + trace = zmalloc(); if (!trace) { PERROR("Failed to allocate ctf_trace"); goto end;