]> git.sur5r.net Git - openldap/commitdiff
Don't free bv_vals that were passed to ber_bvarray_add.
authorHoward Chu <hyc@openldap.org>
Sat, 19 Jan 2002 04:28:45 +0000 (04:28 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 19 Jan 2002 04:28:45 +0000 (04:28 +0000)
servers/slapd/back-ldbm/alias.c

index d4a06344bc57ed537ccb60d23788ec81ddf00c44..206bf66ce8ef4a6b2949613852f235b7affec64f 100644 (file)
@@ -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;
 }