1452202 Resource leak
The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In event_notifier_error_accounting_register_app: Leak of memory or pointers to system resources (CWE-404)
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I07cc8808b05c497b9bc3099deca58e14f721c5a1
free(cpu_counters[i]);
}
+ free(cpu_counters);
+
error_allocate_cpu_counters:
error_send_counter_data:
ustctl_release_object(-1, new_counter);