X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmi-lttng.cpp;h=01e89b779811a62be5da524148ba41b21f3cb71a;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=2a1dfa57d942c4b5cec5c259900ee85671f71171;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;p=lttng-tools.git diff --git a/src/common/mi-lttng.cpp b/src/common/mi-lttng.cpp index 2a1dfa57d..01e89b779 100644 --- a/src/common/mi-lttng.cpp +++ b/src/common/mi-lttng.cpp @@ -773,7 +773,7 @@ struct mi_writer *mi_lttng_writer_create(int fd_output, int mi_output_type) { struct mi_writer *mi_writer; - mi_writer = (struct mi_writer *) zmalloc(sizeof(struct mi_writer)); + mi_writer = zmalloc(); if (!mi_writer) { PERROR("zmalloc mi_writer_create"); goto end;