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

Re: memory leaks (ITS#1387)



Certain items allocated by the library on first API are leaked.
Kurt

At 11:55 PM 2001-10-11, fredrik.hagstrand@consultant.saab.se wrote:
>Full_Name: Fredrik Hagstrand
>Version: 2.0.15
>OS: Linux
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (136.163.203.3)
>
>
>I think there is a memory leak problem in OpenLDAP. 
>Memprof reports memory leaks from the following
>very simple code:
>
>#include <stdlib.h>
>#include <ldap.h>
>#include <lber.h>
>
>int main(int argc, char *argv[])
>{
>  LDAP* l;
>  int b;
>  l = ldap_init(LDAP_HOST, LDAP_PORT);
>  b = ldap_simple_bind_s(l, ROOT_DN, ROOT_PW);
>  ldap_unbind(l);
>}
>
>Have I done anything wrong here, or does OpenLDAP 
>infact leak memory?