X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent-notifier-error-accounting.c;h=aee82742a80ba9412f641632081fae402b3159b3;hp=cb8380251924476eb0efe4191b361edbac2eb195;hb=74f286be45611aa0a3e0a8fedfdee6c254a97ee6;hpb=477b83a4de8580a75e3aa88de423c7081e49d6e0 diff --git a/src/bin/lttng-sessiond/event-notifier-error-accounting.c b/src/bin/lttng-sessiond/event-notifier-error-accounting.c index cb8380251..aee82742a 100644 --- a/src/bin/lttng-sessiond/event-notifier-error-accounting.c +++ b/src/bin/lttng-sessiond/event-notifier-error-accounting.c @@ -223,11 +223,11 @@ struct error_account_entry *create_uid_accounting_entry( cpu_counter_fds[i] = -1; } - cpu_counters = zmalloc(entry->nr_counter_cpu_fds * sizeof(**cpu_counters)); + 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, - entry->nr_counter_cpu_fds * sizeof(**cpu_counters)); + entry->nr_counter_cpu_fds * sizeof(struct lttng_ust_abi_object_data *)); ret = -1; goto error_counter_cpus_alloc; }