X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Ffilterentry.c;h=aff8da2cc4c3bf73a6863ddfb8bdaffe2b2b246c;hb=7fe91339dfd08d6c4168c8493f5c1f0faca6ba54;hp=911b72e5a0a863eadd1fac50c89386950b1614e9;hpb=81db5651daf24207ee2cdef82ddf506a9ec540d6;p=openldap diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index 911b72e5a0..aff8da2cc4 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -220,7 +220,7 @@ static int test_mra_filter( num_attr_vals++; /* following malloced will be freed by comp_tree_free () */ - a->a_comp_data = malloc( sizeof( ComponentData ) + + a->a_comp_data = SLAP_MALLOC( sizeof( ComponentData ) + sizeof( ComponentSyntaxInfo* )*num_attr_vals ); if ( !a->a_comp_data ) return LDAP_NO_MEMORY; @@ -716,7 +716,7 @@ test_ava_filter( num_attr_vals++;/* for NULL termination */ /* following malloced will be freed by comp_tree_free () */ - a->a_comp_data = malloc( sizeof( ComponentData ) + sizeof( ComponentSyntaxInfo* )*num_attr_vals ); + a->a_comp_data = SLAP_MALLOC( sizeof( ComponentData ) + sizeof( ComponentSyntaxInfo* )*num_attr_vals ); if ( !a->a_comp_data ) { return LDAP_NO_MEMORY;