summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-11 11:22:41 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-11 11:31:48 +0200
commit52ab3ca5e697bc638a20a338b857521ee69949a7 (patch)
tree20ed50fd213922e8a2f8443d27483d33af135304 /source4
parent753698e070ce5b9efbe5889a6a7434115520223d (diff)
downloadsamba-52ab3ca5e697bc638a20a338b857521ee69949a7.tar.gz
samba-52ab3ca5e697bc638a20a338b857521ee69949a7.tar.bz2
samba-52ab3ca5e697bc638a20a338b857521ee69949a7.zip
s4:torture - "dbspeed" test
Calculate the leaks on base of the "tmp_ctx" not the torture context.
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/local/dbspeed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/local/dbspeed.c b/source4/torture/local/dbspeed.c
index e56aa4ecd5..38dd01c413 100644
--- a/source4/torture/local/dbspeed.c
+++ b/source4/torture/local/dbspeed.c
@@ -207,7 +207,7 @@ static bool test_ldb_speed(struct torture_context *torture, const void *_data)
}
}
- if (talloc_total_blocks(torture) > 100) {
+ if (talloc_total_blocks(tmp_ctx) > 100) {
torture_result(torture, TORTURE_FAIL, "memory leak in ldb add\n");
goto failed;
}
@@ -235,7 +235,7 @@ static bool test_ldb_speed(struct torture_context *torture, const void *_data)
talloc_free(res);
}
- if (talloc_total_blocks(torture) > 100) {
+ if (talloc_total_blocks(tmp_ctx) > 100) {
torture_result(torture, TORTURE_FAIL, "memory leak in ldb search\n");
goto failed;
}