stackframe-children1
authorStefan Metzmacher <metze@samba.org>
Sat, 12 Oct 2013 00:11:38 +0000 (02:11 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Mar 2014 23:04:45 +0000 (00:04 +0100)
source3/smbd/process.c

index 9457000f4059a7afe2b405c05e24b9ffdcc50d53..d8bd1b8f3fafa78cf5b52c87eb45c93baf3c8d93 100644 (file)
@@ -3725,8 +3725,8 @@ void smbd_process(struct tevent_context *ev_ctx,
 
        tevent_set_trace_callback(ev_ctx, smbd_tevent_trace_callback, conn);
 
+       frame = talloc_stackframe_pool(8192);
        while (True) {
-               frame = talloc_stackframe_pool(8192);
 
                errno = 0;
                if (tevent_loop_once(ev_ctx) == -1) {
@@ -3737,7 +3737,7 @@ void smbd_process(struct tevent_context *ev_ctx,
                        }
                }
 
-               TALLOC_FREE(frame);
+               talloc_free_children(frame);
        }
 
        exit_server_cleanly(NULL);