]> git.sur5r.net Git - openldap/commitdiff
don't free officially dummy values
authorPierangelo Masarati <ando@openldap.org>
Fri, 13 May 2005 08:50:10 +0000 (08:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 13 May 2005 08:50:10 +0000 (08:50 +0000)
servers/slapd/attr.c

index 5e0b3e6e99191e816289e5f568e885213f7f71eb..cdfb3a2fe57eb6a11668fe312d7d7b539c8d0265 100644 (file)
@@ -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 );
 }