From cf31d48665527b0c6154f0b07c4adef203b0ea2d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 13 May 2005 08:50:10 +0000 Subject: [PATCH] don't free officially dummy values --- servers/slapd/attr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5