Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / lib / lttng-ctl / clear.cpp
index 114758b0c8f3a38296600e9bba47d28929ccc0f2..b7a312be583e6750df64d2872f379c4fce4cfd52 100644 (file)
@@ -64,7 +64,7 @@ static
 struct lttng_clear_handle *lttng_clear_handle_create(int sessiond_socket)
 {
        int ret;
-       struct lttng_clear_handle *handle = (lttng_clear_handle *) zmalloc(sizeof(*handle));
+       struct lttng_clear_handle *handle = zmalloc<lttng_clear_handle>();
 
        if (!handle) {
                goto end;
This page took 0.023039 seconds and 4 git commands to generate.