Subject: Re: [libssh2] libssh2_session_startup: how to handle errors

Re: [libssh2] libssh2_session_startup: how to handle errors

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 24 Apr 2008 22:52:12 -0700

On Thu, Apr 24, 2008 at 08:42:36PM -0700, J.T. Conklin wrote:
> If libssh2_session_startup() fails, is a libssh2_session_free() needed
> to reclaim resources? I assume so, but the example programs just exit
> on return (compared with other failures, which do end up calling
> libssh2_session_free()).

If the startup failed, then there's nothing that needs to be freed.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-04-25