#257: [PATCH] libssh2_session_free: infinite loop
-----------------------+-------------------
Reporter: greg2001 | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.4.3
Component: API | Version: 1.4.2
Resolution: | Keywords:
Blocked By: | Blocks:
-----------------------+-------------------
Comment (by greg2001):
Hi ncm,
thanks for your analysis.
The problem with your fix is that in case of a comm failure,
libssh2_session_free would just exit without freeing the allocated memory
causing a memory leak...
WBR
Gregory
-- Ticket URL: <https://trac.libssh2.org/ticket/257#comment:2> libssh2 <https://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2013-02-23