]> git.sur5r.net Git - openldap/commitdiff
use preallocated entries? (otherwise bdb_add and others leak...)
authorPierangelo Masarati <ando@openldap.org>
Sun, 3 Sep 2006 10:58:13 +0000 (10:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 3 Sep 2006 10:58:13 +0000 (10:58 +0000)
servers/slapd/entry.c

index fed66efdc9d5abb1fa23121bebad2e65eb3aee94..f7a1fb7b8d1a320ec153f93cc437c51976f052a6 100644 (file)
@@ -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 );