]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/attr.c
Do something with the error text.
[openldap] / servers / slapd / attr.c
index 9239e161f812e6c378608858e8c8f7ec2edcb634..d5b9e3a0780acf2afe41d2cc18c4103426becd48 100644 (file)
@@ -29,7 +29,6 @@ static void at_index_print( void );
 void
 attr_free( Attribute *a )
 {
-       ad_free( a->a_desc, 1 );
        ber_bvecfree( a->a_vals );
        free( a );
 }
@@ -74,7 +73,7 @@ Attribute *attr_dup( Attribute *a )
                tmp->a_vals = NULL;
        }
 
-       tmp->a_desc = ad_dup( a->a_desc );
+       tmp->a_desc = a->a_desc;
        tmp->a_next = NULL;
 
        return tmp;
@@ -124,7 +123,7 @@ attr_merge(
 
        if ( *a == NULL ) {
                *a = (Attribute *) ch_malloc( sizeof(Attribute) );
-               (*a)->a_desc = ad_dup( desc );
+               (*a)->a_desc = desc;
                (*a)->a_vals = NULL;
                (*a)->a_next = NULL;
        }