From e172835b558c90f1c2ad43d00bcf3fdd63be9d5f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 29 Aug 2006 17:09:08 +0000 Subject: [PATCH] fix pre-allocated entry/attribute handling --- servers/slapd/back-ldap/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } -- 2.39.5