git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea9237
)
r3559: If called interactively, on shutdown dump the talloc contexts left. Idea
author
Volker Lendecke
<vlendec@samba.org>
Fri, 5 Nov 2004 21:45:02 +0000
(21:45 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:09 +0000
(10:53 -0500)
stolen from samba4 ... ;-)
Volker
(This used to be commit
b111bb46afc247e034a11e953b9d243cde69cc07
)
source3/smbd/server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/server.c
b/source3/smbd/server.c
index 0fe633bb9692468d65bc47ce775e5134a6f9b3b3..bf1da1a0c87fd7e1102c68c7a67c92660983299c 100644
(file)
--- 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);
}