summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c12
1 files changed, 4 insertions, 8 deletions
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);
}