Subject: [libssh2] #168: Memory leak in libssh2_session_startup

[libssh2] #168: Memory leak in libssh2_session_startup

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Thu, 25 Mar 2010 22:46:20 -0000

#168: Memory leak in libssh2_session_startup
----------------------+-----------------------------------------------------
 Reporter: jcollins | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone:
Component: API | Version: 1.2.4
 Keywords: | Blocking:
Blockedby: |
----------------------+-----------------------------------------------------
 Calling libssh2_session_startup results in a memory leak which is not
 rectified by libssh_sesion_free.

 Steps to reproduce:
 - Change the attached "main.c" to the username and password for your
 server
 - Compile using gcc, linking with -lssh2
 - Run under valgrind --tool=memcheck --leak-check=full

 Expected result: no errors or memory leaks
 Actual result: 2 memory leaks found (see attached valgrind.txt)

 This bug is present in the latest Ubuntu repo version (1.1) as well as the
 latest release (1.2.4).

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/168>
libssh2 <http://libssh2.stuge.se/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-03-25