X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpipe.cpp;h=8bf0c1ff33341e54728d3b0b196f62752fc536c6;hb=88277a52069ed0135254ce29da617ebb6ecddbb8;hp=c2dce78816f0fad0e41a935d49371b20f5bbcd0d;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/pipe.cpp b/src/common/pipe.cpp index c2dce7881..8bf0c1ff3 100644 --- a/src/common/pipe.cpp +++ b/src/common/pipe.cpp @@ -108,7 +108,7 @@ static struct lttng_pipe *_pipe_create(void) int ret; struct lttng_pipe *p; - p = (lttng_pipe *) zmalloc(sizeof(*p)); + p = zmalloc(); if (!p) { PERROR("zmalloc pipe create"); goto end;