From 3a83c813df79e3934fe42ae0d1d2fa42a5bd7ebf Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 3 Sep 2006 10:58:13 +0000 Subject: [PATCH] use preallocated entries? (otherwise bdb_add and others leak...) --- servers/slapd/entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5