ITS#6005 ber_strdup/ber_dupbv must use ber_memfree

This commit is contained in:
Howard Chu 2009-03-08 00:13:48 +00:00
parent 02b71d58ec
commit 34c537a046

View File

@ -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 );