mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Plug memleak
This commit is contained in:
parent
f14f6472e7
commit
8050701f56
@ -988,8 +988,9 @@ anlist2attrs( AttributeName * anlist )
|
||||
char **attrs;
|
||||
ObjectClass *oc;
|
||||
|
||||
attrs = anlist2charray( anlist, 1 );
|
||||
|
||||
if ( anlist == NULL )
|
||||
return NULL;
|
||||
|
||||
for ( i = 0; anlist[i].an_name.bv_val; i++ ) {
|
||||
if ( ( oc = anlist[i].an_oc ) ) {
|
||||
for ( j = 0; oc->soc_required && oc->soc_required[j]; j++ ) ;
|
||||
@ -1002,6 +1003,8 @@ anlist2attrs( AttributeName * anlist )
|
||||
if ( i == 0 )
|
||||
return NULL;
|
||||
|
||||
attrs = anlist2charray( anlist, 1 );
|
||||
|
||||
n = i;
|
||||
|
||||
if ( k )
|
||||
|
Loading…
Reference in New Issue
Block a user