Author: vlendec Date: 2004-11-05 21:45:02 +0000 (Fri, 05 Nov 2004) New Revision: 3559
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3559 Log: If called interactively, on shutdown dump the talloc contexts left. Idea stolen from samba4 ... ;-) Volker Modified: branches/SAMBA_3_0/source/smbd/server.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/server.c =================================================================== --- branches/SAMBA_3_0/source/smbd/server.c 2004-11-05 12:53:04 UTC (rev 3558) +++ branches/SAMBA_3_0/source/smbd/server.c 2004-11-05 21:45:02 UTC (rev 3559) @@ -910,6 +910,15 @@ 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); }
