From: Pierangelo Masarati Date: Fri, 13 May 2005 08:50:10 +0000 (+0000) Subject: don't free officially dummy values X-Git-Tag: OPENLDAP_AC_BP~646 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cf31d48665527b0c6154f0b07c4adef203b0ea2d;p=openldap don't free officially dummy values --- diff --git a/servers/slapd/attr.c b/servers/slapd/attr.c index 5e0b3e6e99..cdfb3a2fe5 100644 --- a/servers/slapd/attr.c +++ b/servers/slapd/attr.c @@ -46,7 +46,9 @@ attr_free( Attribute *a ) if ( a->a_nvals && a->a_nvals != a->a_vals ) { ber_bvarray_free( a->a_nvals ); } - ber_bvarray_free( a->a_vals ); + if ( a->a_vals != &slap_dummy_bv ) { + ber_bvarray_free( a->a_vals ); + } free( a ); }