Cleanup: lttng: remove unused 'session_name' variable
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 3 Nov 2022 16:02:49 +0000 (12:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Dec 2022 14:22:57 +0000 (09:22 -0500)
Change-Id: I46ef649b68d1d9dd22378d34e7d5900b26d827ce
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/clear.cpp

index 6c2399181105cae25aa366ccf3d71f7a8de11082..7998920da198b0012ce6227a2705e5594a62530e 100644 (file)
@@ -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;
 }
 
This page took 0.025057 seconds and 4 git commands to generate.