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

Re: [libssh2] libssh2_session_startup: how to handle errors

From: Dan Fandrich <>
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

--              The web change of address service
          Let webmasters know that your web site has moved
This 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.;198757673;13503038;p?
libssh2-devel mailing list
Received on 2008-04-25