From 88402ab64de4d6060532853322c41af0eb45a396 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 10 Apr 2012 17:39:40 -0400 Subject: [PATCH] Fix tests: add missing session2 destroy Signed-off-by: Mathieu Desnoyers --- tests/ust/ust_global_event_basic.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ust/ust_global_event_basic.c b/tests/ust/ust_global_event_basic.c index 6f116969f..ad14afbb3 100644 --- a/tests/ust/ust_global_event_basic.c +++ b/tests/ust/ust_global_event_basic.c @@ -268,6 +268,12 @@ int main(int argc, char **argv) } PRINT_OK(); + printf("Destroy tracing session 2: "); + if ((ret = lttng_destroy_session(session_name2)) < 0) { + printf("error destroying session 2: %s\n", lttng_strerror(ret)); + } + PRINT_OK(); + printf("Destroy tracing session: "); if ((ret = lttng_destroy_session(session_name)) < 0) { printf("error destroying session: %s\n", lttng_strerror(ret)); @@ -285,6 +291,7 @@ stop_fail: start_fail: context_fail: enable_fail: + lttng_destroy_session(session_name2); lttng_destroy_session(session_name); lttng_destroy_handle(handle); -- 2.34.1