From 3c5d7639624f6a82e75328e30dfd89e8ae728c55 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 20 Sep 2009 13:14:40 -0700 Subject: talloc: fixed talloc_disable_null_tracking() When we disable null tracking, we need to move any existing objects that are under the null_context to be parented by the true NULL context. We also need a new talloc_enable_null_tracking_no_autofree() function, as the talloc testsuite cannot cope with the moving of the autofree context under the null_context as it wants to check exact counts of objects under the null_context, and smbtorture has a large number of objects in the autofree_context from .init functions --- lib/talloc/talloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/talloc/talloc.h') diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index 8241eeb306..f549a17fba 100644 --- a/lib/talloc/talloc.h +++ b/lib/talloc/talloc.h @@ -163,6 +163,7 @@ void talloc_report_depth_file(const void *ptr, int depth, int max_depth, FILE *f void talloc_report_full(const void *ptr, FILE *f); void talloc_report(const void *ptr, FILE *f); void talloc_enable_null_tracking(void); +void talloc_enable_null_tracking_no_autofree(void); void talloc_disable_null_tracking(void); void talloc_enable_leak_report(void); void talloc_enable_leak_report_full(void); -- cgit