From: Howard Chu Date: Sun, 8 Mar 2009 00:13:48 +0000 (+0000) Subject: ITS#6005 ber_strdup/ber_dupbv must use ber_memfree X-Git-Tag: ACLCHECK_0~720 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=34c537a0467ce60e27f9bd74ed8b806d0194bdea;p=openldap ITS#6005 ber_strdup/ber_dupbv must use ber_memfree --- diff --git a/tests/progs/slapd-bind.c b/tests/progs/slapd-bind.c index 1b597f27f0..cb3c983bd9 100644 --- a/tests/progs/slapd-bind.c +++ b/tests/progs/slapd-bind.c @@ -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 );