goto error_send_counter_data;
}
- cpu_counters = zmalloc(entry->nr_counter_cpu_fds * sizeof(struct lttng_ust_abi_object_data));
+ cpu_counters = zmalloc(entry->nr_counter_cpu_fds * sizeof(struct lttng_ust_abi_object_data *));
if (!cpu_counters) {
PERROR("Failed to allocate event notifier error counter lttng_ust_abi_object_data array: application uid = %d, application name = '%s', pid = %d, allocation size = %zu",
(int) app->uid, app->name, (int) app->pid,
free(cpu_counters[i]);
}
+ free(cpu_counters);
+
error_allocate_cpu_counters:
error_send_counter_data:
ustctl_release_object(-1, new_counter);