mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-18 15:20:35 +08:00
ITS#6005 ber_strdup/ber_dupbv must use ber_memfree
This commit is contained in:
parent
02b71d58ec
commit
34c537a046
@ -591,7 +591,7 @@ novals:;
|
||||
|
||||
if ( dns ) {
|
||||
for ( i = 0; i < ndns; i++ ) {
|
||||
free( dns[i] );
|
||||
ber_memfree( dns[i] );
|
||||
}
|
||||
free( dns );
|
||||
}
|
||||
@ -599,7 +599,7 @@ novals:;
|
||||
if ( creds ) {
|
||||
for ( i = 0; i < ndns; i++ ) {
|
||||
if ( creds[i].bv_val != nullstr ) {
|
||||
free( creds[i].bv_val );
|
||||
ber_memfree( creds[i].bv_val );
|
||||
}
|
||||
}
|
||||
free( creds );
|
||||
|
Loading…
x
Reference in New Issue
Block a user