s4:dsdb Ensure we free old schema copies
authorAndrew Bartlett <abartlet@samba.org>
Wed, 30 Jun 2010 13:25:32 +0000 (23:25 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 2 Jul 2010 00:08:16 +0000 (10:08 +1000)
commitc48279896d93ab8d4490cbf9d47eb6f763b43785
tree53f9f6417e6c50aa860e406871e1f083baccc6f9
parent5a66edc99ee782e36efa2fc64a7603247ba3abc1
s4:dsdb Ensure we free old schema copies

It was reported by aatanasov that we kept around one whole schema per
modification made.  This does not fix that, but I hope moves us closer
to a fix

The most important part of the fix is that:

- if (schema_out != schema_in) {
- talloc_unlink(schema_in, ldb);
- }

was the wrong way around.  This is now handled in the schema_set calls.

Andrew Bartlett
source4/dsdb/schema/schema_set.c