Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / sessiond-trace-chunks.cpp
index 0a5c44825414bc720fe6081e459b5b3410c349b4..68a5e454f8afba796a4aeaa3e86a0ddcbe2cfdaf 100644 (file)
@@ -197,7 +197,7 @@ int trace_chunk_registry_ht_element_create(
                goto end;
        }
 
                goto end;
        }
 
-       new_element = (trace_chunk_registry_ht_element *) zmalloc(sizeof(*new_element));
+       new_element = zmalloc<trace_chunk_registry_ht_element>();
        if (!new_element) {
                ret = -1;
                goto end;
        if (!new_element) {
                ret = -1;
                goto end;
@@ -263,7 +263,7 @@ end:
 struct sessiond_trace_chunk_registry *sessiond_trace_chunk_registry_create(void)
 {
        struct sessiond_trace_chunk_registry *sessiond_registry =
 struct sessiond_trace_chunk_registry *sessiond_trace_chunk_registry_create(void)
 {
        struct sessiond_trace_chunk_registry *sessiond_registry =
-                       (sessiond_trace_chunk_registry *) zmalloc(sizeof(*sessiond_registry));
+                       zmalloc<sessiond_trace_chunk_registry>();
 
        if (!sessiond_registry) {
                goto end;
 
        if (!sessiond_registry) {
                goto end;
This page took 0.023841 seconds and 4 git commands to generate.