X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Fdestruction-handle.cpp;fp=src%2Flib%2Flttng-ctl%2Fdestruction-handle.cpp;h=3882a587e830e12e61926b38c852ff7d08b9fb8d;hp=d937b2c73c3693a26dadb38962363b34323625d0;hb=64803277bbdbe0a943360d918298a48157d9da55;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491 diff --git a/src/lib/lttng-ctl/destruction-handle.cpp b/src/lib/lttng-ctl/destruction-handle.cpp index d937b2c73..3882a587e 100644 --- a/src/lib/lttng-ctl/destruction-handle.cpp +++ b/src/lib/lttng-ctl/destruction-handle.cpp @@ -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(); if (!handle) { goto end;