From: Stefan Metzmacher Date: Mon, 10 Jun 2013 08:46:41 +0000 (+0200) Subject: dsdb: reset schema->{classes,attributes}_to_remove_size to 0 X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=3fba9ba7ea85e33faac2718d2463c5d0cd2d85f4 dsdb: reset schema->{classes,attributes}_to_remove_size to 0 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue Jun 11 11:40:39 CEST 2013 on sn-devel-104 --- diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index 73264f9545a..ce8facbef3c 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -338,8 +338,10 @@ int dsdb_setup_sorted_accessors(struct ldb_context *ldb, TALLOC_FREE(schema->attributes_to_remove[i]); } - TALLOC_FREE(schema->attributes_to_remove); TALLOC_FREE(schema->classes_to_remove); + schema->classes_to_remove_size = 0; + TALLOC_FREE(schema->attributes_to_remove); + schema->attributes_to_remove_size = 0; /* free all caches */ dsdb_sorted_accessors_free(schema);