aboutsummaryrefslogtreecommitdiff
path: root/examples/samplesshd-tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/samplesshd-tty.c')
-rw-r--r--examples/samplesshd-tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/samplesshd-tty.c b/examples/samplesshd-tty.c
index a19071d4..7ed70d3d 100644
--- a/examples/samplesshd-tty.c
+++ b/examples/samplesshd-tty.c
@@ -321,6 +321,7 @@ static int main_loop(ssh_channel chan) {
rc = ssh_event_dopoll(event, 1000);
if (rc == SSH_ERROR){
fprintf(stderr, "Error : %s\n", ssh_get_error(session));
+ ssh_event_free(event);
ssh_disconnect(session);
return -1;
}