use preallocated entries? (otherwise bdb_add and others leak...)

This commit is contained in:
Pierangelo Masarati 2006-09-03 10:58:13 +00:00
parent d95b88da21
commit 3a83c813df

View 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 );