aboutsummaryrefslogtreecommitdiff
path: root/samplesshd.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2008-06-30 22:28:11 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2008-06-30 22:28:11 +0000
commitd477025000c4d6717f9501cc8d382eed06fbe868 (patch)
tree449d1758108d4d7ea969b04df2ce0e6202ee705b /samplesshd.c
parent5758188467194aa04ad854b77167ec360bdac463 (diff)
downloadlibssh-d477025000c4d6717f9501cc8d382eed06fbe868.tar.gz
libssh-d477025000c4d6717f9501cc8d382eed06fbe868.tar.xz
libssh-d477025000c4d6717f9501cc8d382eed06fbe868.zip
fix bug 0000015 about memory leak in server path
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@180 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'samplesshd.c')
-rw-r--r--samplesshd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/samplesshd.c b/samplesshd.c
index c6088d0b..3e98b3e5 100644
--- a/samplesshd.c
+++ b/samplesshd.c
@@ -148,7 +148,9 @@ int main(int argc, char **argv){
if(i>0)
write(1,buffer_get(buf),buffer_get_len(buf));
} while (i>0);
+ buffer_free(buf);
ssh_disconnect(session);
+ ssh_bind_free(ssh_bind);
ssh_finalize();
return 0;
}