Revert "stackframe-children1"
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2013 10:52:36 +0000 (12:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Mar 2014 23:04:47 +0000 (00:04 +0100)
This reverts commit 8f71c6781ffe6652fa34cc68c5eeda4594f9eeeb.

source3/smbd/process.c

index d8bd1b8f3fafa78cf5b52c87eb45c93baf3c8d93..9457000f4059a7afe2b405c05e24b9ffdcc50d53 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_children(frame);
+               TALLOC_FREE(frame);
        }
 
        exit_server_cleanly(NULL);