summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.c4
1 files changed, 3 insertions, 1 deletions
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);
}