Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / event-rule / kernel-syscall.cpp
index 815f99d9df0434a3dfac3f9ec96160c342116c32..d006eaa054960b29eeb59edf0e342cc60ba19459 100644 (file)
@@ -356,7 +356,7 @@ struct lttng_event_rule *lttng_event_rule_kernel_syscall_create(
                goto end;
        }
 
-       syscall_rule = (lttng_event_rule_kernel_syscall *) zmalloc(sizeof(struct lttng_event_rule_kernel_syscall));
+       syscall_rule = zmalloc<lttng_event_rule_kernel_syscall>();
        if (!syscall_rule) {
                goto end;
        }
This page took 0.024409 seconds and 4 git commands to generate.