]> git.sur5r.net Git - openldap/commitdiff
ITS#6005 ber_strdup/ber_dupbv must use ber_memfree
authorHoward Chu <hyc@openldap.org>
Sun, 8 Mar 2009 00:13:48 +0000 (00:13 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 8 Mar 2009 00:13:48 +0000 (00:13 +0000)
tests/progs/slapd-bind.c

index 1b597f27f04b1063528a535992e2ee259bb15943..cb3c983bd9f8f489b28397602de5e90bb52f1d0a 100644 (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 );