Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / lib / lttng-ctl / destruction-handle.cpp
index d937b2c73c3693a26dadb38962363b34323625d0..3882a587e830e12e61926b38c852ff7d08b9fb8d 100644 (file)
@@ -69,7 +69,7 @@ struct lttng_destruction_handle *lttng_destruction_handle_create(
                int sessiond_socket)
 {
        int ret;
-       struct lttng_destruction_handle *handle = (lttng_destruction_handle *) zmalloc(sizeof(*handle));
+       struct lttng_destruction_handle *handle = zmalloc<lttng_destruction_handle>();
 
        if (!handle) {
                goto end;
This page took 0.024502 seconds and 4 git commands to generate.