mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#6005 ber_strdup/ber_dupbv must use ber_memfree
This commit is contained in:
parent
02b71d58ec
commit
34c537a046
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue