From d9a989993708bfdc28c12deceaaac7f0163ea340 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 19 Jan 2002 04:28:45 +0000 Subject: [PATCH] Don't free bv_vals that were passed to ber_bvarray_add. --- servers/slapd/back-ldbm/alias.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/servers/slapd/back-ldbm/alias.c b/servers/slapd/back-ldbm/alias.c index d4a06344bc..206bf66ce8 100644 --- a/servers/slapd/back-ldbm/alias.c +++ b/servers/slapd/back-ldbm/alias.c @@ -109,7 +109,6 @@ Entry *deref_internal_r( ch_free( aliasDN.bv_val ); if( newe != NULL ) { - free( dn.bv_val ); cache_return_entry_r(&li->li_cache, entry ); entry = newe; ber_dupbv( &dn, &entry->e_nname ); @@ -173,7 +172,6 @@ Entry *deref_internal_r( if( newe != NULL ) { free(aliasDN.bv_val); - free( dn.bv_val ); cache_return_entry_r(&li->li_cache, sup ); entry = newe; ber_dupbv( &dn, &entry->e_nname ); @@ -182,7 +180,6 @@ Entry *deref_internal_r( } if ( newSup != NULL ) { - free( dn.bv_val ); cache_return_entry_r(&li->li_cache, sup ); sup = newSup; ber_dupbv( &dn, &aliasDN ); @@ -197,7 +194,6 @@ Entry *deref_internal_r( } } - free( dn.bv_val ); ber_bvarray_free( dnlist ); return entry; } -- 2.39.5