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

slapd memory leak (ITS#249)

Full_Name: Dirk Nehring
Version: 1.2.5
OS: Solaris 2.6/Sparc
Submission from: (NULL) (

OpenLDAP is compiled with egcs-1.0.3, libdb-2.7.5 and

CFLAGS="-s -O3 -D_REENTRANT" ./configure --enable-shared --enable-cldap
--with-ldbm-db2 --with-threads=lwp

My database is about 70,000 entries big. After modifying all entries with
slapd leaks memory and dies with:

Aug 11 19:34:16 xxxxx slapd[22032]: calloc of 2048 elems of 4 bytes failed

I looked into the source and found the following line  servers/slapd/modify.c

Line 77: (*modtail) = (LDAPMod *) ch_calloc( 1, sizeof(LDAPMod) );

I haven't found the corresponding free(), so this could be the reason for my
problems. Any ideas?