From 52ab3ca5e697bc638a20a338b857521ee69949a7 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 11 Apr 2010 11:22:41 +0200 Subject: s4:torture - "dbspeed" test Calculate the leaks on base of the "tmp_ctx" not the torture context. --- source4/torture/local/dbspeed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture') 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; } -- cgit