From 7b9d6ac23e1a7d8136fffd2e3977b09a815da65a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 3 May 2005 07:33:49 +0000 Subject: r6595: This is Volkers new-talloc patch. Just got the go-ahead from Volker to commit. Woo Hoo ! Jeremy. (This used to be commit 316df944a456f150944761dab34add5e8c4ab699) --- source3/smbd/server.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'source3/smbd/server.c') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 9d910cd14a..301534d750 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -747,6 +747,10 @@ void build_options(BOOL screen); log_stdout = True; } + if (interactive && (DEBUGLEVEL >= 9)) { + talloc_enable_leak_report(); + } + if (log_stdout && Fork) { DEBUG(0,("ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i)\n")); exit(1); @@ -952,14 +956,6 @@ void build_options(BOOL screen); namecache_shutdown(); - if (interactive) { - TALLOC_CTX *mem_ctx = talloc_init("end_description"); - char *description = talloc_describe_all(mem_ctx); - - DEBUG(3, ("tallocs left:\n%s\n", description)); - talloc_destroy(mem_ctx); - } - exit_server("normal exit"); return(0); } -- cgit