PRINT_OK();
printf("Destroy tracing session: ");
- if ((ret = lttng_destroy_session(handle)) < 0) {
+ if ((ret = lttng_destroy_session(session_name)) < 0) {
printf("error destroying session: %s\n", lttng_strerror(ret));
}
PRINT_OK();
stop_fail:
start_fail:
enable_fail:
- lttng_destroy_session(handle);
+ lttng_destroy_session(session_name);
lttng_destroy_handle(handle);
return 1;