Author: abartlet Date: 2007-07-04 03:25:44 +0000 (Wed, 04 Jul 2007) New Revision: 23695
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23695 Log: By not using the NULL context for these large structures, we don't falsely report them as leaked. Andrew Bartlett Modified: branches/SAMBA_4_0/source/dsdb/schema/schema_init.c branches/SAMBA_4_0/source/smbd/server.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/schema/schema_init.c =================================================================== --- branches/SAMBA_4_0/source/dsdb/schema/schema_init.c 2007-07-04 00:41:58 UTC (rev 23694) +++ branches/SAMBA_4_0/source/dsdb/schema/schema_init.c 2007-07-04 03:25:44 UTC (rev 23695) @@ -1061,7 +1061,7 @@ return; } - talloc_steal(NULL, schema); + talloc_steal(talloc_autofree_context(), schema); global_schema = schema; } Modified: branches/SAMBA_4_0/source/smbd/server.c =================================================================== --- branches/SAMBA_4_0/source/smbd/server.c 2007-07-04 00:41:58 UTC (rev 23694) +++ branches/SAMBA_4_0/source/smbd/server.c 2007-07-04 03:25:44 UTC (rev 23695) @@ -285,7 +285,7 @@ /* the event context is the top level structure in smbd. Everything else should hang off that */ - event_ctx = event_context_init(NULL); + event_ctx = event_context_init(talloc_autofree_context()); /* initialise clustering if needed */ cluster_ctdb_init(event_ctx, model);
