X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fattr.c;h=0d696dc02486058b66e229ebe802f936dbba74b9;hb=8a5bbf9b0808a17543cd7141623a91a79c633232;hp=51752ee9ac4008b37ca6ac5de3907c7e19c94d15;hpb=3952bc8e95a2b21aced14f890028f12d00e191fa;p=openldap diff --git a/servers/slapd/attr.c b/servers/slapd/attr.c index 51752ee9ac..0d696dc024 100644 --- a/servers/slapd/attr.c +++ b/servers/slapd/attr.c @@ -77,7 +77,7 @@ attr_merge_fast( if ( **a == NULL ) { **a = (Attribute *) ch_malloc( sizeof(Attribute) ); - (**a)->a_type = attr_normalize( strdup( type ) ); + (**a)->a_type = attr_normalize( ch_strdup( type ) ); (**a)->a_vals = NULL; (**a)->a_syntax = attr_syntax( type ); (**a)->a_next = NULL; @@ -112,7 +112,7 @@ attr_merge( if ( *a == NULL ) { *a = (Attribute *) ch_malloc( sizeof(Attribute) ); - (*a)->a_type = attr_normalize( strdup( type ) ); + (*a)->a_type = attr_normalize( ch_strdup( type ) ); (*a)->a_vals = NULL; (*a)->a_syntax = attr_syntax( type ); (*a)->a_next = NULL;