[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: cleanup after ldap_init(), use free?



On Fri, Jul 15, 2005 at 09:58:16AM +0200, Hallvard B Furuseth wrote:
> Eric Haszlakiewicz writes:
> > The ldap_init() man page doesn't say anything about this, so I'm just
> > guessing here: should I use free() to free the value that ldap_init()
> > returns?
> 
> ldap_unbind() frees the LDAP* structure after terminating the LDAP
> session.

	So what do I use if I haven't called ldap_bind yet, or if ldap_bind
fails?

eric