s4:dsdb/schema: Remove unused old schema from memory
commit29caafaf2888b25408fcafdb9767a003a910c1d7
authorAndrew Bartlett <abartlet@samba.org>
Thu, 4 Aug 2016 03:25:52 +0000 (4 15:25 +1200)
committerJeremy Allison <jra@samba.org>
Wed, 10 Aug 2016 22:49:14 +0000 (11 00:49 +0200)
tree0fcc453a17fa313bfebceac4e64b5a645b4d4887
parentc533b60ceb761b609e78dfe270930cb99fdac848
s4:dsdb/schema: Remove unused old schema from memory

This avoids confusion when reading the talloc dump from a ldb context that has
been the target of replication, as the dsdb_schema_copy_shallow() memory was
still around, if unused.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12115

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/schema/schema_set.c