summaryrefslogtreecommitdiffstats
path: root/source/smbd/server.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-05-03 07:33:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:46 -0500
commit316df944a456f150944761dab34add5e8c4ab699 (patch)
treee67e7c7804733e9b894d7010b505d41bf4c5eb3c /source/smbd/server.c
parent4f431dfc6b57e1609672c4daa53ab5d62613f6d1 (diff)
downloadsamba-316df944a456f150944761dab34add5e8c4ab699.tar.gz
samba-316df944a456f150944761dab34add5e8c4ab699.tar.xz
samba-316df944a456f150944761dab34add5e8c4ab699.zip
r6595: This is Volkers new-talloc patch. Just got the go-ahead from
Volker to commit. Woo Hoo ! Jeremy.
Diffstat (limited to 'source/smbd/server.c')
-rw-r--r--source/smbd/server.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c
index 9d910cd14ad..301534d750c 100644
--- a/source/smbd/server.c
+++ b/source/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);
}