From: Michael Jeanson Date: Thu, 3 Nov 2022 16:02:49 +0000 (-0400) Subject: Cleanup: lttng: remove unused 'session_name' variable X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3957512ed31ca945f8353d5812f317314c905640;p=lttng-tools.git Cleanup: lttng: remove unused 'session_name' variable Change-Id: I46ef649b68d1d9dd22378d34e7d5900b26d827ce Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/clear.cpp b/src/bin/lttng/commands/clear.cpp index 6c2399181..7998920da 100644 --- a/src/bin/lttng/commands/clear.cpp +++ b/src/bin/lttng/commands/clear.cpp @@ -56,7 +56,6 @@ static int clear_session(struct lttng_session *session) struct lttng_clear_handle *handle = NULL; enum lttng_error_code ret_code; bool printed_wait_msg = false; - char *session_name = NULL; int ret; ret = lttng_clear_session(session->name, &handle); @@ -117,7 +116,6 @@ error: MSG(""); } lttng_clear_handle_destroy(handle); - free(session_name); return ret; }