From: Pierangelo Masarati Date: Tue, 29 Aug 2006 17:09:08 +0000 (+0000) Subject: fix pre-allocated entry/attribute handling X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~236 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e172835b558c90f1c2ad43d00bcf3fdd63be9d5f;p=openldap fix pre-allocated entry/attribute handling --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 16b08fe8a3..a122b85dfb 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -579,7 +579,7 @@ ldap_build_entry( "%s ldap_build_entry: " "slap_bv2undef_ad(%s): %s\n", op->o_log_prefix, a.bv_val, text ); - ch_free( attr ); + attr_free( attr ); continue; } } @@ -602,7 +602,7 @@ ldap_build_entry( */ ( void )ber_scanf( &ber, "x" /* [W] */ ); - ch_free( attr ); + attr_free( attr ); continue; } @@ -683,7 +683,7 @@ ldap_build_entry( if ( rc != LDAP_SUCCESS ) { BER_BVZERO( &attr->a_nvals[i] ); - ch_free( attr ); + attr_free( attr ); goto next_attr; } }