[Date Prev][Date Next]
Re: Fix for Memory Leak (ITS#217)
At 10:38 PM 6/30/99 GMT, firstname.lastname@example.org wrote:
>Full_Name: Tim Bowman
>OS: Linux & NT
>Submission from: (NULL) (22.214.171.124)
>There is a memory leak due to the global openldap_ldap_global_options struct
>(in init.c) having two members ldo_defbase & ldo_defhost which are malloced if
>an ldap.conf file is read. This is a one-time allocation, so it's only a big
>for OSs that don't free the memory.
The simple (and correct) fix is for the library to register an atexit()
handler to deallocate the two strings...
> ldap needs an ldap_uninit to pair with ldap_init.
ldap_init/ldap_open are paired with ldap_unbind.