1452201 Dereference after null check
Either the check against null is unnecessary, or there may be a null pointer dereference.
In event_notifier_error_accounting_register_app: Pointer is checked against null but then dereferenced anyway (CWE-476)
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I169fd6434606b2a35e076ae9258de6597565effe
cpu_counters = NULL;
goto end;
-error_allocate_cpu_counters:
error_send_cpu_counter_data:
error_duplicate_cpu_counter:
/* Teardown any duplicated cpu counters. */
free(cpu_counters[i]);
}
+error_allocate_cpu_counters:
error_send_counter_data:
ustctl_release_object(-1, new_counter);
free(new_counter);