From 157589bb91cc53ebc26fcc989e49523864780083 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 5 Feb 2010 13:02:32 +0100 Subject: Fix handling of the global context in the leak detector --- server/tests/common.c | 2 ++ server/tests/common.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/tests/common.c b/server/tests/common.c index dad9dc66b..50dc61b16 100644 --- a/server/tests/common.c +++ b/server/tests/common.c @@ -29,6 +29,8 @@ #include "util/dlinklist.h" #include "util/util.h" +TALLOC_CTX *global_talloc_context = NULL; + struct size_snapshot { struct size_snapshot *prev; struct size_snapshot *next; diff --git a/server/tests/common.h b/server/tests/common.h index 44e2d9afa..0e954d7db 100644 --- a/server/tests/common.h +++ b/server/tests/common.h @@ -3,7 +3,7 @@ #include -TALLOC_CTX *global_talloc_context; +extern TALLOC_CTX *global_talloc_context; #define check_leaks(ctx, bytes) _check_leaks((ctx), (bytes), __location__) void _check_leaks(TALLOC_CTX *ctx, -- cgit