mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fix memory losses, ITS#379
This commit is contained in:
parent
cbc5c8494e
commit
ed05ed8025
@ -151,7 +151,7 @@ int ldap_int_get_controls(
|
||||
return LDAP_NO_MEMORY;
|
||||
}
|
||||
|
||||
ctrls[nctrls] = NULL;
|
||||
*ctrls[nctrls] = NULL;
|
||||
|
||||
for( tag = ber_first_element( ber, &len, &opaque );
|
||||
tag != LBER_ERROR;
|
||||
|
@ -75,7 +75,7 @@ int get_ctrls(
|
||||
}
|
||||
#endif
|
||||
|
||||
ctrls[nctrls] = NULL;
|
||||
*ctrls[nctrls] = NULL;
|
||||
|
||||
for( tag = ber_first_element( ber, &len, &opaque );
|
||||
tag != LBER_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user