summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-11-05 21:45:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:09 -0500
commitbaf1ae1b0e86e16cc1364d64463d654e297fa221 (patch)
treeafb579151d96341a3114117145f9b5040ccc347a
parent8ea9237d82857ecd6111c37d1ce6b9122ff50f44 (diff)
downloadsamba-baf1ae1b0e86e16cc1364d64463d654e297fa221.tar.gz
samba-baf1ae1b0e86e16cc1364d64463d654e297fa221.tar.bz2
samba-baf1ae1b0e86e16cc1364d64463d654e297fa221.zip
r3559: If called interactively, on shutdown dump the talloc contexts left. Idea
stolen from samba4 ... ;-) Volker (This used to be commit b111bb46afc247e034a11e953b9d243cde69cc07)
-rw-r--r--source3/smbd/server.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 0fe633bb96..bf1da1a0c8 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -910,6 +910,15 @@ void build_options(BOOL screen);
smbd_process();
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);
}