Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.cpp
index 4821548e515c032a636b9d765f9e42429403cd33..e3234d5d4e3ef75a70761ea20420cf500f356b8a 100644 (file)
@@ -231,7 +231,7 @@ struct lttng_health *lttng_health_create(enum health_component hc,
        struct lttng_health *lh;
        int i;
 
-       lh = (lttng_health *) zmalloc(sizeof(*lh) + sizeof(lh->thread[0]) * nr_threads);
+       lh = zmalloc<lttng_health>(sizeof(*lh) + sizeof(lh->thread[0]) * nr_threads);
        if (!lh) {
                return NULL;
        }
This page took 0.033485 seconds and 4 git commands to generate.