summaryrefslogtreecommitdiff
path: root/server/tests
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-02-05 13:02:32 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-10 08:46:48 -0500
commit157589bb91cc53ebc26fcc989e49523864780083 (patch)
tree4f7510d84c8cfd6e5f400998451fbcfe737544e9 /server/tests
parent3a4aa5e5006decc100a2d8f2db54c46b482afd7c (diff)
downloadsssd-157589bb91cc53ebc26fcc989e49523864780083.tar.gz
sssd-157589bb91cc53ebc26fcc989e49523864780083.tar.bz2
sssd-157589bb91cc53ebc26fcc989e49523864780083.zip
Fix handling of the global context in the leak detector
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/common.c2
-rw-r--r--server/tests/common.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/common.c b/server/tests/common.c
index dad9dc66..50dc61b1 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 44e2d9af..0e954d7d 100644
--- a/server/tests/common.h
+++ b/server/tests/common.h
@@ -3,7 +3,7 @@
#include <talloc.h>
-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,