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

Re: cleanup after ldap_init(), use free?



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.

-- 
Hallvard
For sale: Parachute. Never opened, used once, slightly stained.