aboutsummaryrefslogtreecommitdiff
path: root/examples/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/exec.c')
-rw-r--r--examples/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/exec.c b/examples/exec.c
index bbfdf0e4..4d5e0c1a 100644
--- a/examples/exec.c
+++ b/examples/exec.c
@@ -50,6 +50,7 @@ int main(void) {
ssh_channel_send_eof(channel);
ssh_channel_close(channel);
ssh_channel_free(channel);
+ ssh_disconnect(session);
ssh_free(session);
ssh_finalize();