From 68be9a820059ee96dd26c527efd7c14e679d3f2c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 15 Nov 2007 14:19:52 -0800 Subject: More pstring removal. This one was tricky. I had to add one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d) --- source3/winbindd/winbindd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index ee993efca5..2167cfcdfc 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1007,6 +1007,7 @@ int main(int argc, char **argv, char **envp) }; poptContext pc; int opt; + TALLOC_CTX *frame = talloc_stackframe(); /* glibc (?) likes to print "User defined signal 1" and exit if a SIGUSR[12] is received before a handler is installed */ @@ -1232,8 +1233,9 @@ int main(int argc, char **argv, char **envp) /* Loop waiting for requests */ + TALLOC_FREE(frame); while (1) { - TALLOC_CTX *frame = talloc_stackframe(); + frame = talloc_stackframe(); process_loop(); TALLOC_FREE(frame); } -- cgit