X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpipe.cpp;h=8bf0c1ff33341e54728d3b0b196f62752fc536c6;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=c2dce78816f0fad0e41a935d49371b20f5bbcd0d;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491;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;