Author: vlendec Date: 2005-02-05 17:25:42 +0000 (Sat, 05 Feb 2005) New Revision: 5238
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5238 Log: If called interactively, report the talloc contexts left behind. Volker Modified: trunk/source/nsswitch/winbindd.c Changeset: Modified: trunk/source/nsswitch/winbindd.c =================================================================== --- trunk/source/nsswitch/winbindd.c 2005-02-05 14:40:47 UTC (rev 5237) +++ trunk/source/nsswitch/winbindd.c 2005-02-05 17:25:42 UTC (rev 5238) @@ -28,6 +28,7 @@ BOOL opt_nocache = False; BOOL opt_dual_daemon = True; +static BOOL interactive = False; extern BOOL override_logfile; @@ -163,6 +164,15 @@ pstr_sprintf(path, "%s/%s", WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); unlink(path); + + 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(0); } @@ -847,7 +857,6 @@ int main(int argc, char **argv) { pstring logfile; - static BOOL interactive = False; static BOOL Fork = True; static BOOL log_stdout = False; struct poptOption long_options[] = {