From b649cd6921d57c212e09f43f30fdb747f8c4b753 Mon Sep 17 00:00:00 2001 From: roman Date: Fri, 18 Oct 2024 13:41:37 +0200 Subject: [PATCH] cli UPDATE add cli monitoring session free --- cli/commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/commands.c b/cli/commands.c index f26fc242..c3d5dc38 100644 --- a/cli/commands.c +++ b/cli/commands.c @@ -2581,7 +2581,8 @@ monitoring_clb(struct nc_session *sess, void *user_data) fprintf(stdout, "Connection reset by peer.\n"); fflush(stdout); - /* set the global session variable to NULL */ + /* free the session and set the global session variable to NULL */ + nc_session_free(session, NULL); session = NULL; if (was_rawmode) {