projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: error accounting: dereference of null pointer on error path
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
event-notifier-error-accounting.c
diff --git
a/src/bin/lttng-sessiond/event-notifier-error-accounting.c
b/src/bin/lttng-sessiond/event-notifier-error-accounting.c
index 035f3a03676fe1cfc2d663dd1497e021e731be84..34dc2b4fe30e8011ca5998407529d5dc0bd3f388 100644
(file)
--- a/
src/bin/lttng-sessiond/event-notifier-error-accounting.c
+++ b/
src/bin/lttng-sessiond/event-notifier-error-accounting.c
@@
-481,7
+481,6
@@
event_notifier_error_accounting_register_app(struct ust_app *app)
cpu_counters = NULL;
goto end;
cpu_counters = NULL;
goto end;
-error_allocate_cpu_counters:
error_send_cpu_counter_data:
error_duplicate_cpu_counter:
/* Teardown any duplicated cpu counters. */
error_send_cpu_counter_data:
error_duplicate_cpu_counter:
/* Teardown any duplicated cpu counters. */
@@
-498,6
+497,7
@@
error_duplicate_cpu_counter:
free(cpu_counters[i]);
}
free(cpu_counters[i]);
}
+error_allocate_cpu_counters:
error_send_counter_data:
ustctl_release_object(-1, new_counter);
free(new_counter);
error_send_counter_data:
ustctl_release_object(-1, new_counter);
free(new_counter);
This page took
0.022735 seconds
and
4
git commands to generate.