Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / pipe.cpp
index c2dce78816f0fad0e41a935d49371b20f5bbcd0d..8bf0c1ff33341e54728d3b0b196f62752fc536c6 100644 (file)
@@ -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<lttng_pipe>();
        if (!p) {
                PERROR("zmalloc pipe create");
                goto end;
This page took 0.023229 seconds and 4 git commands to generate.