aboutsummaryrefslogtreecommitdiff
path: root/examples/exec.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-04-15 19:05:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-04-15 19:05:53 +0200
commit644145a88caf0ff9cbfa16902c775b922578357b (patch)
treee3269574337b6c60ad4a93b3bd565d5997e88c36 /examples/exec.c
parentef658b4bef82670b6064078df355d6b6cf5ac999 (diff)
downloadlibssh-644145a88caf0ff9cbfa16902c775b922578357b.tar.gz
libssh-644145a88caf0ff9cbfa16902c775b922578357b.tar.xz
libssh-644145a88caf0ff9cbfa16902c775b922578357b.zip
examples: Fix some memory leaks.
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();