mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
use preallocated entries? (otherwise bdb_add and others leak...)
This commit is contained in:
parent
d95b88da21
commit
3a83c813df
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user