From b5ed09c3afe2c9122db6eec6dd994588d7d6a2c1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 24 Sep 2010 18:45:52 +0200 Subject: Move talloc_enable_null_tracking() to the s3 daemons --- source3/smbd/server.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 07261b1e83..106eafcccd 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -857,11 +857,17 @@ extern void build_options(bool screen); POPT_TABLEEND }; struct smbd_parent_context *parent = NULL; - TALLOC_CTX *frame = talloc_stackframe(); /* Setup tos. */ + TALLOC_CTX *frame; NTSTATUS status; uint64_t unique_id; struct rpc_srv_callbacks spoolss_cb; + /* + * Do this before any other talloc operation + */ + talloc_enable_null_tracking(); + frame = talloc_stackframe(); + /* Initialize the event context, it will panic on error */ smbd_event_context(); -- cgit