aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh/client.c b/ssh/client.c
index b293a33..e431cf6 100644
--- a/ssh/client.c
+++ b/ssh/client.c
@@ -647,11 +647,12 @@ int main(int argc, char **argv) {
tomsg_event_nullify(event);
} else {
printf("Tomsg error: %s\n", tomsg_strerror(ret));
- break;
+ goto error_cleanup;
}
}
}
}
+error_cleanup:
tomsg_close(client);
}