aboutsummaryrefslogtreecommitdiff
path: root/libssh/session.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2008-03-03 14:51:35 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2008-03-03 14:51:35 +0000
commit01470097c6ff22b3c1a8c4383ae08a2ad3ce0ff8 (patch)
treecb0a7cd01ed647ca4c2d19e534556d48bba8cd57 /libssh/session.c
parentfeccd44ef59329f3bfb8963e473a14e43e1aa2ec (diff)
downloadlibssh-01470097c6ff22b3c1a8c4383ae08a2ad3ce0ff8.tar.gz
libssh-01470097c6ff22b3c1a8c4383ae08a2ad3ce0ff8.tar.xz
libssh-01470097c6ff22b3c1a8c4383ae08a2ad3ce0ff8.zip
fix bug #0000002 : in_socket_buffer and out_socket_buffer memleak +
"g" and "p" O(1) memleak. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@134 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/session.c')
-rw-r--r--libssh/session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/session.c b/libssh/session.c
index bb7858ef..1f19640d 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -58,6 +58,10 @@ void ssh_cleanup(SSH_SESSION *session){
buffer_free(session->in_buffer);
if(session->out_buffer)
buffer_free(session->out_buffer);
+ if(session->in_socket_buffer)
+ buffer_free(session->in_socket_buffer);
+ if(session->out_socket_buffer)
+ buffer_free(session->out_socket_buffer);
if(session->banner)
free(session->banner);
if(session->options)