s4: schema: Allocate global_schema off the NULL context, not the talloc_autofree_cont...
authorJeremy Allison <jra@samba.org>
Mon, 24 Jul 2017 19:50:50 +0000 (12:50 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 26 Jul 2017 19:35:22 +0000 (21:35 +0200)
commitc27a6438cb3dd98fc300311a951b91be91610a90
treec23acd59fcfc7f828c6f7a24e2603573d11a401f
parent99e4bea89e82327e6de3adf7e8411eb9a89f54db
s4: schema: Allocate global_schema off the NULL context, not the talloc_autofree_context().

The ldb context keeps a talloc_reference to this also, so the long-live allocation
context can be NULL.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/schema/schema_set.c