goto error;
}
- handle = (lttng_process_attr_tracker_handle *) zmalloc(sizeof(*handle));
+ handle = zmalloc<lttng_process_attr_tracker_handle>();
if (!handle) {
ret_code = LTTNG_ERR_NOMEM;
goto error;
goto end;
}
- pid_array = (int32_t *) zmalloc(pid_count * sizeof(int32_t));
+ pid_array = calloc<int32_t>(pid_count);
if (!pid_array) {
ret_code = LTTNG_ERR_NOMEM;
goto end;