Skip to content

Commit

Permalink
cli UPDATE add cli monitoring session free
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Oct 18, 2024
1 parent b794715 commit b649cd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b649cd6

Please sign in to comment.