[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libssh2-devel
Subject:    Re: [libssh2] libssh2_session_startup: how to handle errors
From:       Dan Fandrich <dan () coneharvesters ! com>
Date:       2008-04-25 5:52:12
Message-ID: 20080425055211.GB20135 () coneharvesters ! com
[Download RAW message or body]

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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic