From: Pierangelo Masarati Date: Sun, 3 Sep 2006 10:58:13 +0000 (+0000) Subject: use preallocated entries? (otherwise bdb_add and others leak...) X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~220 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a83c813df79e3934fe42ae0d1d2fa42a5bd7ebf;p=openldap use preallocated entries? (otherwise bdb_add and others leak...) --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index fed66efdc9..f7a1fb7b8d 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -846,7 +846,7 @@ Entry *entry_dup( Entry *e ) { Entry *ret; - ret = (Entry *)ch_calloc( 1, sizeof(*ret) ); + ret = entry_alloc(); ret->e_id = e->e_id; ber_dupbv( &ret->e_name, &e->e_name );