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

index d8bd1b8f3fafa78cf5b52c87eb45c93baf3c8d93..849be4184caf0a6c89a8be81888cfd687bddfbb4 100644 (file)
@@ -3738,6 +3738,10 @@ void smbd_process(struct tevent_context *ev_ctx,
                }
 
                talloc_free_children(frame);
+               if (talloc_total_blocks(frame) > 1) {
+                       TALLOC_FREE(frame);
+                       frame = talloc_stackframe_pool(8192);
+               }
        }
 
        exit_server_cleanly(NULL);