From 34c537a0467ce60e27f9bd74ed8b806d0194bdea Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 8 Mar 2009 00:13:48 +0000 Subject: [PATCH] ITS#6005 ber_strdup/ber_dupbv must use ber_memfree --- tests/progs/slapd-bind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5