Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / snapshot.cpp
index f7821da95da978ac54f1111d7622a4080e8b31ca..1601f17ccc2f0918f1bb81b0c6cc0fe00796ca23 100644 (file)
@@ -165,7 +165,7 @@ error:
 
 struct snapshot_output *snapshot_output_alloc(void)
 {
-       return (snapshot_output *) zmalloc(sizeof(struct snapshot_output));
+       return zmalloc<snapshot_output>();
 }
 
 /*
This page took 0.023388 seconds and 4 git commands to generate.